Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Self-Destructing Message iPhone App Designing and Starting the App Adding Login and Sign Up Screens

Taylor Weeks
Taylor Weeks
4,009 Points

Using a custom class for table view controller.

After I create a custom class called "InboxViewController", i go to assign it as a custom class for the table view controller-inbox, but it is not available in the drop-down box. It does not accept it when I type it in and hit enter. I could use some help.

5 Answers

Taylor Weeks
Taylor Weeks
4,009 Points

I just figured it out. I guess just clicking on the view doesn't select the controller. I needed to click on the yellow icon below the view to select the table view controller - inbox.

Stone Preston
Stone Preston
42,016 Points

yeah you need to make sure you have a blue outline around the controller. that means the controller is selected. you may have been selecting a child view inside the controller.

Stone Preston
Stone Preston
42,016 Points

make sure inboxViewController is inheriting from UITableViewController. in your .h file your your inbox view controller it should look something like this

@interface InboxViewController : UITableViewController
Taylor Weeks
Taylor Weeks
4,009 Points

Thanks for your response. I have checked that and it is exactly as you have above. Still not working.

Stone Preston
Stone Preston
42,016 Points

try doing a clean by selecting product-> clean in the xcode menu bar. if that doesnt work try restarting xcode. it should definitely let you type it in manually, just make sure you are spelling the name right

Trevor Gerzen
Trevor Gerzen
2,749 Points

I think part of the problem is the difference between the version of Xcode that the tutorial is using and the latest version. When you click on the view in the latest version it drops gives you a darker drop shadow, but if you click on the bar beneath the view then it will be highlighted blue like it is in the video. I was thrown off by this also and just kept clicking around until I got that blue selection.