多个storyboard关联
1,拖一个storyboard reference
2,如果不设置referenced id, 默认关联目标storyboard,is initial viewcontroller的控制器
3,设置了referenced id,就关联了对应的控制器
4,如果目标storyboard没有设置is initial viewcontroller, referenced id也不填写,则会报错
(null): xxx.storyboard references the initial view controller of xxx.storyboard, but no designated entry point was found.
5,refactor to storyboard 用来拆分storyboard,自动拆分的关联控制器, 自动获得referenced id 和storyboard id, 如果代码中用到instantiateViewControllerWithIdentifier的地方,不需要改代码。
6, 如果报错“Deploying Storyboard References to iOS 8.0 requires that your storyboards do not share any view controller identifiers.”,
则需要修改关联的控制器的storyboard id,清空就可以了。
这样不能使用instantiateViewControllerWithIdentifier方法
在当前storyboard中取对应storyboard id的控制器, 但是保留实际的控制器所在的storyboard中的storyboard的 storyboard id设置就行,使用原来的实际的storybarod用取控制器。