获取Storyboard里面的单独控制器
2016-06-24 10:37
330 查看
第一步:要获取单独控制器所在的UIStoryboard
UIStoryboard *story = [UIStoryboard
storyboardWithName:@"Main"
bundle:nil];
第二步:获取该控制器的Identifier并赋给你的单独控制器
YYJumpToShareViewController *vc = [story
instantiateViewControllerWithIdentifier:@"JumpToShareVC"];
[self.navigationController
pushViewController:vc animated:YES];
UIStoryboard *story = [UIStoryboard
storyboardWithName:@"Main"
bundle:nil];
第二步:获取该控制器的Identifier并赋给你的单独控制器
YYJumpToShareViewController *vc = [story
instantiateViewControllerWithIdentifier:@"JumpToShareVC"];
[self.navigationController
pushViewController:vc animated:YES];
相关文章推荐
- 反序进阶版,java
- 安卓支付相关
- android监听全局监听
- Java Socket编程 标准范例(多线程)
- unity调用Android剪切板基于Android studio
- IM聊实现客户端之间信息交互需求文档
- linux/eclipse/c++ 动态库的创立与调用
- 软件工程概论期末个人总结
- 删除重复数字,java
- Java RMI 介绍
- Android Settings修改小记
- 设计模式——责任链模式
- 冒泡排序,java
- 最长公共子序列[Tyvj 1050]
- Linux中搭建常用服务器
- C++ 内存布局:深入理解C++内存布局
- 第一篇
- debian下手动安装nginx/php/mysql
- 说说JSON和JSONP,也许你会豁然开朗,含jQuery用例
- Laravel Auth验证