IOS-代码push到storyboard里面的viewController

首先我们要知道storyboard的名字

其次给viewController一个标识符

之后就是代码了

UIStoryboard *story = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
FindThirdViewController *third = [story instantiateViewControllerWithIdentifier:@"FindThird"];[self.navigationController pushViewController:third animated:YES];

posted @ 2015-02-09 11:39  等待绽放的季节  阅读(1025)  评论(0编辑  收藏  举报