Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,662 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,662 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.