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 trial

iOS

Having Trouble Creating Private IBOutlets

Having trouble creating private IBOutlets. In this video.

http://teamtreehouse.com/library/build-a-diary-app-using-core-data/custom-uitableviewcell/customizing-table-view-cell-appearance

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
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

Hi 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.

Thanks Robert, assigning THEntryCell class to the prototype cell solved my issue.