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 Playlist Browser with Objective-C Working With Multiple View Controllers Modifying the UI

IBOutlet linking problem

I'm having an issue with linking a label from Interface Builder into the interface for one of my view controller subclasses. A common problem with novices, I've seen, but all instances of this I've known to be user error (not subclassing of UIView, etc). I've checked for my own mistakes for 1hr+, but everything seems correct. Could anyone help me out here? I'm probably wrong and just not seeing it. I've recorded the problem to help: https://youtu.be/MS5ZEnHBlU4.

To be clear, as in the TeamTreeHouse video for this issue, PlaylistMasterViewController.h was the original view controller subclass that I renamed. PlaylistDetailViewController.h is the view controller custom class I added later to go with the second ViewController (the VC on the right) in IB. I've had this problem in small, personal projects of the past as well, always stemming from created VC customs classes. What to do?

For everyone that may have this issue in the future, I've solved it. I created a random property within the interface of the PlaylistDetailViewController header file that I never intended to use, then I was able to link the label under that.

Very strange, that I'd cleared up lines of space for this linking to work previously, to no avail, but the dummy property trick worked.