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

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

    Storyboard is looking for the custom class but physically its no there and its not displaying the custom class name in the list and also not displaying the outlets . Following solution perfectly worked for me.

    1. Just copy your code some where else.(Lets say on desktop)
    2. Open your existing code.
    3. Delete the custom class file.(Move to trash)
    4. Now add files from copied project folder (From desktop)
    5. Don't forget to check "Copy if needed" check box
    6. Open the story board and bingo you will get your custom class files in dropdown

提交回复
热议问题