NSInvalidArgumentException,原因:'故事板不包含带有标识符'SomeController'的视图控制器

时间:2011-11-11 15:11:36

标签: ios ios5 storyboard xcode4.2

在尝试测试iOS 5中的新版UIPageViewController时,我遇到了以下问题:

  

'NSInvalidArgumentException', reason: 'Storyboard doesn't contain a view controller with identifier 'SomeController'

事情是:SomeController绝对是项目的一部分,并附加到故事板中的视图。

我尝试重新附加它,清理项目,重新启动所有内容等等。不起作用。

这似乎是一个奇特的错误,因为我在Google上搜索时甚至没有获得任何一次点击。 有谁知道可能是什么原因?

2 个答案:

答案 0 :(得分:1)

我刚刚发现,问题是我没有给Scene,它连接到“SomeController”标识符“SomeController”。 我假设将课程连接到场景就足够了

答案 1 :(得分:1)

在Identity Inspector中,您将“StoryBoard ID”设置为“SomeController”而不是Attributes Inspector,否则您是对的user1041920。

相关问题