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

1dayitwillmake picture 1dayitwillmake · Jan 2, 2013 · Viewed 59.7k times · Source

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?

Answer

ejkujan picture ejkujan · Jan 4, 2013

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.