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
Ashley Kelley
Courses Plus Student 10,554 PointsiOS Blog Reader Issues (Code Challenges)
Is anyone else finding the final code challenges extremely difficult? I've completed all sections so far fairly well but I'm finding it increasingly difficult to solve the code challenges for the last 'Adapting Data for Display' challenge, and all of the 'Viewing A Web Page'.
When I get the first challenge wrong I get the message
'Make sure you created an application with the correct method, and check your syntax!'
This doesn't give me much to go on, I don't know if it's a few lines of code of the entire lot. I tried to add the pieces of code Amit uses in his video but I'm completely lost.
Please help, I'm so frustrated that I'm unable to finish this final section.
Ashley
3 Answers
Amit Bijlani
Treehouse Guest TeacherAshley Kelley could you please paste your code here so we can see what is going.
Ashley Kelley
Courses Plus Student 10,554 PointsHi Amit,
Sorry, I was getting quite frustrated but I managed to complete all the code challenges with the exception of the final challenge, I seem to have forgotten how to do this and can't find an answer:
"Convert the 'futureDate' object to a string object named 'dateString'."
NSDate *today = [[NSDate alloc] init];
NSTimeInterval secondsForTenDays = 60 * 60 * 24 * 10; NSDate *futureDate = [[NSDate alloc] init]; futureDate = [NSDate dateWithTimeIntervalSinceNow:secondsForTenDays];
dateFormatter = [[NSDateFormatter alloc] init]; [dateFormatter setDateFormat:@"MM/dd/YYYY"];
Amit Bijlani
Treehouse Guest TeacherAnswer posted in your other thread: https://teamtreehouse.com/forum/convert-the-futuredate-object-to-a-string-object-named-datestring