Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialBrandon Oree
1,585 PointsIBOutlet 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?
Brandon Oree
1,585 PointsBrandon Oree
1,585 PointsFor 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.