Welcome to the Treehouse Community
Looking to learn something new?
Rodrigo Chousal16,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?
Chris Shaw26,662 Points
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.