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

Rodrigo Chousal
Rodrigo Chousal
16,009 Points

Not Receiving Messages

I am doing the Build a Self-Destructing Message iPhone App project, and by minute 9:30 on Retrieving Data From Parse.com Ben is already able to open messages by clicking on the cell (using didSelectRowAtIndexPath probably). However, he has not actually done this in the video. Should I keep watching, or try to do it on my own?

Rodrigo Chousal
Rodrigo Chousal
16,009 Points

I am also experiencing a glitch where every user has the same friends...

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Rodrigo,

I haven't had much experience with the UITableView class before but after briefly looking over your code I've noticed two things that stand out to me.

The first is your numberOfSectionsInTableView method is returning 0 which from memory tells iOS that you don't have any data to assign to the view even if it's bound, this value should at least be 1, again it's been a while since I've got stuck into objective-c so it's just my observation.

The second is even once your code is working cellForRowAtIndexPath will continue to fail as you're not returning the cell back which is what the method return type is looking for.

Hope that helps.

Rodrigo Chousal
Rodrigo Chousal
16,009 Points

I just realized this five minutes ago, what a silly mistake. Thank you! Any chance you could answer my new question?

Chris Shaw
Chris Shaw
26,676 Points

Should I keep watching, or try to do it on my own?

Keep going, by the look of it he continues explaining things in the next couple of videos.

I am also experiencing a glitch where every user has the same friends.

I'm not familiar with the course and Parse but maybe Ben Jakuben can help you out with that question.