Error: unreachable because it has no entry points

后端 未结 12 1193
小蘑菇
小蘑菇 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:59

    The problem is exactly as the warning says: this View Controller is unreachable because it has no entry points.

    If you have only one View Controller then this controller is missing its entry point. You can fix this by setting this View Controller as "Is Initial View Controller".

    If you have several View Controllers and this View Controller is not in the beginning of your storyboard sequence, then you are missing a segue which should display this View Controller. You can fix this by adding a segue which should show this View Controller.

    In general, Xcode tells you that this View Controller is not connected to the storyboard sequence because it has no incoming connections.

提交回复
热议问题