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
Thomas Skjelstad
11,541 PointsNot retrieving messages from parse. What is wrong.
My app is not retrieving the messages from parse.com NSlog shows Current user: Thomas NSlog shows : Retrieved 0 messages.
in the console field.
I have gone through the video several times. Downloaded the example code to compare. I can't figure out where the problem is.
In parse.com data view. the recipientIds are just showing as an empty square. like this [] while ObjectId, SenderId, has strings of id numbers.
Is there something wrong with my code since there is no Id numbers for my recipientIds.
2 Answers
David Kaneshiro Jr.
29,247 PointsThomas,
Since your recipientIds are coming back empty it sounds like there may be a problem within the area of your code where you select the message recipients. Try taking a look at the tableView:didSelectRowAtIndexPath method in your CameraViewController.m file. Check the "if" statement that checks to see if the table cell has a checkmark. Make sure that the recipients array is being populated correctly.
From there you want to make sure you're including the recipients list into the message that you're saving to Parse, so you'll want to double check your uploadMessage helper method, also located in CameraViewController.m
That's where I would start.
David Kaneshiro Jr.
29,247 PointsThat's cool. I'm glad you were able to find the culprit.
Thomas Skjelstad
11,541 PointsThomas Skjelstad
11,541 PointsI figured it out. Should have followed the video a little better. It also makes sense, i called the Reset method before the block could finish doing it's thing.
[self reset]; was the sinner.