Monday, August 21, 2017

Main.storyboard: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:.

I'm using Xcode 6.1 on Mac OS X Mavericks v10.9.5. The warning appeared when I have more than one view controllers in my story board.

To remove the warning, I set the Storyboard ID (in the Identity Inspector) for all the view controllers, which are not root view controller. The root view controller is the one with the Is Initial View Controller property checked (in Attributes Inspector).

The storyboard ID identifies the view controller within a storyboard. Storyboard ID is used when you want to programmatically access a view controller for some reasons such as switching to another view.

No comments:

Post a Comment