美文网首页
stroyboard

stroyboard

作者: 偶是星爷 | 来源:发表于2016-10-14 00:05 被阅读34次

玩stroyboard,出现以下错误

Failed to instantiate the default view controller for UIMainStoryboardFile 'Main'

storyboard需要一个入口点,方法就在属性那里

启动失败

用好Storyboard Table View Controller的Static Cell

Static Cell是个强大的东西,而且这个只有Storyboard有,xib里是没有的。
可以不全部代码用Storyboard,示例化里面某一个View Controller也是可以的

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"your storyboard" bundle:nil];
CustomViewController = [storyboard instantiateViewControllerWithIdentifier:@"custom identifier"];

相关文章

网友评论

      本文标题:stroyboard

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