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 trialChristopher Santos
Courses Plus Student 10,697 PointsHaving Trouble Creating Private IBOutlets
Having trouble creating private IBOutlets. In this video.
In the video at the 1:00 minute mark he creates private IBOutlets in a different file than the assistant editor initially displays. He opens up THEntryCell.m instead and creates a
@interface THEntryCell ()
@end
Where he is able to drag and drop from the 3 Labels and the 2 UIImage objects into the THEntryCell.m file.
I am not able to do that. I am able to display the THEntryCell.m file in the assistant editor. I can CTRL click the labels and UIImages but when I mouse over to the THEntryCell.m file, in-between the @interface EntryCell () and @end, area nothing happens. Xcode will not create the IBOutlets for me.
1 Answer
Robert Bojor
Courses Plus Student 29,439 PointsHi Christopher,
Have you assigned the THEntryCell class to the cell you are using? You do this by using the Identity Inspector and filling in the custom class.
Christopher Santos
Courses Plus Student 10,697 PointsChristopher Santos
Courses Plus Student 10,697 PointsThanks Robert, assigning THEntryCell class to the prototype cell solved my issue.