NSInvalidArgumentException, reason: "The storyboard does not contain a view controller with the identifier" SomeController "

When trying to test the UIPageViewController , which is new in iOS 5, I ran into the following problem:

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

The fact is that SomeController definitely part of the project and attached to the view in the storyboard.

I tried to reconnect it, clear the project, reload everything and so on. Does not work.

This seems like an exotic mistake, because I did not receive a single blow, but was looking for it. Does anyone know what could be causing?

+4
source share
2 answers

I just found out that the problem is that I did not give the scene that was connected to the "SomeController" identifier to "SomeController". I suggested that connecting the class to the scene would be enough

+1
source

In the Identity Inspector, you set the “StoryBoard ID” as “SomeController” and not “Attributes Inspector”, otherwise you are right user1041920.

+1
source

Source: https://habr.com/ru/post/1380781/


All Articles