当我尝试在iphone 5s上运行时,我的项目会出现这样的错误。
terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'Storyboard (<UIStoryboard: 0x7ffe90414500>) doesn't contain a view controller with
identifier 'galleryPageViewController''
哪些属性可能与iPhone 5s不兼容?
答案 0 :(得分:0)
我已经使用
解决了这个问题UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" withBundle:[NSBundle mainBundle]];
[storyboard instantiateViewControllerWithIdentifier@"MyViewController"];
之前是
[self.storyboard instantiateViewControllerWithIdentifier@"MyViewController"];
不知何故,它对故事板感到困惑,现在它起作用了。