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

后端 未结 25 1080
北荒
北荒 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:10

    I would try the following:

    1. Check that the file implementing the class is part of the build phases (check under target > build phases)
    2. Add the .m file to build phases (if it isn't already).
    3. Restart Xcode.

提交回复
热议问题