Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ios

storyboard

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 for my target). However when I go to set the 'Custom Class' property on the view-controller in Storyboard my custom class does not show up on the list.

  • Checked that the class is part of my app's target, not tests'
  • Double checked that it is correctly a subclass of UIViewController
  • Compiled program just to make sure xcode was working with latest information
  • Restarted xcode

What would cause my class to not show up in the 'Custom Class' drop down?

like image 643
1dayitwillmake Avatar asked Jan 02 '13 22:01

1dayitwillmake


1 Answers

Two ways I found that solve the problem but they are work arounds:-

  1. Just type the view controllers name in the text field, or
  2. close the project and then reopen it and in the project initialization it places the file on the list.
like image 125
ejkujan Avatar answered Sep 17 '22 12:09

ejkujan