EnamelPot

自律在于今天和明天之间

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
1 //得到名为Main的storyboard的实例
2 [UIStoryboard storyboardWithName:@"Main" bundle:nil];
3 //得到名为aaa的VC实例 也就是说在storyboard中设置的VC其实是你已链接类的一个实例
4 [storyboard instantiateViewControllerWithIdentifier:@"aaa"];
5 
6 //洁一些
7 UIViewController *someVC = [self.storyboard instantiateViewControllerWithIdentifier:@"aaa"];

 

posted on 2013-12-09 13:48  EnamelPot  阅读(205)  评论(0编辑  收藏  举报