Error: unreachable because it has no entry points

后端 未结 12 1345
小蘑菇
小蘑菇 2021-02-03 20:15

Using Swift I got the error that my \"TableViewController\" is unreachable because it has no entry points and no runtime access via [UIStoryboard instantiateViewControllerWithId

12条回答
  •  滥情空心
    2021-02-03 20:50

    When you have 2 or more navigation controllers(embedded UIVIewcontrollers) or 2 or more UIViewcontrollers in your storyboard. Xcode may be looking for a startup view controller. You can mark either of one of them as startupviewcontroller, just by selecting the "is initial viewcontroller"

    OR you can give a unique storyboard id for each and every UInavigationcontrollers or UIViewcontrollers or UITabviewcontrollers in your storyboard.

提交回复
热议问题