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
Sebastian Nitu
8,616 PointsBlogReader app
I am almost done with the BlogReader app and i must say, first of all, that I love this project!
I do have, however, one curiosity:
How would i have to change the project in such a manner, that when I select a blog post from UITableView, the news few, the actual blog post, only display the text of the treehouse blog post and not the whole mobile web page. I believe this point is somewhat crucial if someone ever wants to make a "commercial" blog reader app since not every website has a "mobile" view.
How do you parse the data and what would an example look like ?
THANK YOU in advance!
Edit:
Amit Bijlani do you hppen to have any suggestions / samples?
1 Answer
Amit Bijlani
Treehouse Guest TeacherJust like you parsed JSON for the table view controller, you can get the post_id and download JSON related to that post in the detail view controller. The Treehouse blog's API only displays the recent post summary but if you implemented the JSON API plugin on your own blog then you could make a call to a URL http://www.example.org/api/get_post/?post_id=47 where the post_id is retrieved from the recent summary.