您的位置:首页 > 移动开发 > IOS开发

IOS-代码push到storyboard里面的viewController

2015-02-09 11:39 323 查看
首先我们要知道storyboard的名字



其次给viewController一个标识符



之后就是代码了

UIStoryboard *story = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
FindThirdViewController *third = [story instantiateViewControllerWithIdentifier:@"FindThird"];[self.navigationController pushViewController:third animated:YES];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: