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!

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 Build a Diary App Using Core Data Custom UITableViewCell Customizing Table View Cell Appearance

Anand P
Anand P
893 Points

UILabels in the custom UITableViewCell (THEntryCell) are nil

No errors/exceptions at compile/runtime.

Verified that the IBOutlets are properly wired/named in the IB/Storyboard.

And after some debugging, I see that all the UILabel's created in the custom cell are empty, and the RootViewController is just blank with nothing displayed.

From below, there are values for entry.body but self.bodyLabel?.text is nil

func configureCellForEntry(entry :DiaryEntry){

        println("EntryCell - configureCellForEntry");

        self.bodyLabel?.text = entry.body;
        println("entry.body \(entry.body)");
        println("self.bodyLabel?.text \(self.bodyLabel?.text)");

The code can be found here, https://github.com/kulfy/Diary

2 Answers

Anand P
Anand P
893 Points

Ash Furrow, would you be able to help me out on this when you get a chance?

I had the same issue. Did you figure out what it is?