story中得控制器
UIStoryboard *board = [UIStoryboard storyboardWithName: @"MainStoryboard" bundle: nil];
childController = [board instantiateViewControllerWithIdentifier: @"DisclosureDetail"];
这两行的意思就是,先指定好是哪一个storyboard,然后在指定的这个storyboard中找出做了identifier标记的controller,再把这个controller实例化一下,赋给即将展现的子视图
加载初始化控制器
[board instantiateInitialViewController]
本文介绍如何使用Storyboard加载并实例化ViewController。具体步骤包括指定Storyboard名称、通过标识符获取ViewController,并进行初始化。
797

被折叠的 条评论
为什么被折叠?



