storyboard与storyboard之间的跳转
2016-04-21 14:09
274 查看
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. [self add_View]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } /** * 哈哈 */ -(void) add_View{ // 从storyboard创建MainViewController UIStoryboard* storyboard = [UIStoryboard storyboardWithName:@"b" bundle:[NSBundle mainBundle]]; _contr = (UIViewController*)[storyboard instantiateViewControllerWithIdentifier:@"mainViewController"]; } - (IBAction)click_Button:(id)sender { [self.navigationController pushViewController:self.contr animated:YES]; }
相关文章推荐
- 妙解质因子--不进行质数判断
- KeyEvent.....
- Tomcat User
- ubuntu12.04的NFS配置(转载)
- Handler,Message,MessageQueue,Looper之间的相爱相杀
- [hdu 5536][2015ACM/ICPC亚洲区长春站]Chip Factory 二进制字典树
- 配置python的豆瓣source
- jQuery实现拖动布局并将排序结果保存到数据库
- socket服务器开发中的SO_REUSEADDR选项与让人心烦的TIME_WAIT
- 事务隔离级别介绍
- python操作xml文件
- Elasticsearch介绍
- xcode的一些设置
- OpenCV的函数的开头部分CV_Assert的意思!
- java Split 特殊符号处理
- 深度解析求结构体sizeof问题
- lkmusic项目之(三)LRC歌词解析--正则解析
- 设计模式
- Linux 编译安装 apache 2.4
- MySQL ・ InnoDB 文件系统之IO系统和内存管理