美文网首页
使用Storyboard创建页面时,调用Controller的页

使用Storyboard创建页面时,调用Controller的页

作者: cb6a1e2768d1 | 来源:发表于2015-05-27 14:52 被阅读70次

调用Storyboard里的页面使用如下代码:

UIStoryboard *storyBoard=[UIStoryboard storyboardWithName:@"Main" bundle:nil];
BookViewController * bookVC = [storyBoard instantiateViewControllerWithIdentifier:@"bookSb"];
[self.navigationController pushViewController:bookVC animated:YES];

嗯。

相关文章

网友评论

      本文标题:使用Storyboard创建页面时,调用Controller的页

      本文链接:https://www.haomeiwen.com/subject/zeprqttx.html