Reputation: 11
I am am making a simple app that has 2 view controllers and I have added a navigation controller to go to another view controller with a button. This usually works well but this time I am getting an error :
“Navigation Controller“ is unreachable because it has no entry points, and no identifier for runtime access via -[UIStoryboard instantiateViewControllerWithIdentifier:]. [9]
How can I fix this?
You can find the entire project here:
https://github.com/vikramadit/quiz--2
Upvotes: 1
Views: 985
Reputation: 10092
There are two ways to fix this issue -
it has no entry points - you can mark Is Initial View Controller checkbox for this NavigationController
instance. This might not be what you want.
no identifier for runtime access via -[UIStoryboard instantiateViewControllerWithIdentifier:] can be solved by assigning a Storyboard ID for this NavigationController
instance. This is probably what you want.
The complain from Xcode is - this NavigationController
instance can not be reached/used in any way from storyboard in code.
Upvotes: 1