Storyboard uiviewcontroller, 'custom class' not showing in drop down

后端 未结 25 1220
北荒
北荒 2020-12-08 01:34

I have a UIViewController I created in my apps storyboard, as well as a custom UIViewController subclass which I added to the project (and is correctly in the compile phase

25条回答
  •  暖寄归人
    2020-12-08 02:14

    If you still have your problem or for those who could have the same problem:

    Make sure to select on your storyboard your "ViewController" instead of your "View" (which is automatically selected when you click on the view in the storyboard). The difference between those two is that when the view controller is selected, a blue rectangle pop up around your app. To be sure to select the view controller, open the document outline and select it directly in your storyboard hierarchy.

    enter image description here enter image description here enter image description here

提交回复
热议问题