Swift 3.0 加载storyboard中文件并跳转
2016-11-02 11:06
183 查看
ScanIDCardViewController 是控制器的名字
let sb = UIStoryboard(name: "Main", bundle: nil) let vc = sb.instantiateViewController(withIdentifier: "ScanIDCardViewController") as! ScanIDCardViewController self.navigationController!.pushViewController(vc, animated: true)
相关文章推荐
- swift3.0,加载本地文件,防止崩溃
- spring3.0 断网情况下 程序报错Spring如何加载XSD文件(org.xml.sax.SAXParseException: Failed to read schema document错误的
- cocos2d-x 3.0游戏实例学习笔记《卡牌塔防》第四步---编辑器(3)--坐标保存&加载文件操作
- ActionScript 3.0 学习(十四) 从加载的.swf文件中读取flash库中的as链接的类
- Swift - 网页控件(UIWebView)加载本地数据,文件
- Swift - 网页控件(UIWebView)加载网页,本地数据,文件
- Thinkphp3.0 Common 里的文件作用 加载扩展函数
- [swift3.0]搭建iOS项目的忽略文件处理和注意事项
- Swift 使用nib文件做iOS界面,在Ios界面跳转传递数据
- 实习小白::(转) Cocos2d-x 3.0 开发(十六)cocos2dx-3.0beta版建立新项目并加载CocoStudio导出文件
- swift_004(Storyboard进行界面跳转及传值)
- Cocos2d-x 3.0 开发(十六)cocos2dx-3.0beta版建立新项目并加载CocoStudio导出文件
- AppDelegate单例模式、通过StoryBoardId加载ViewController Swift
- swift 加载 storyboard 里的UIViewController
- Swift - 加载XIB 文件
- storyboard和xib的区别以及如何加载xib文件
- storyboard中xib文件不加载问题
- swift 代码加载xib storyboard
- Swift - 使用NSURLSession加载数据、下载、上传文件
- Swift3.0 info.plist文件访问权限汇总