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

iOS

Implementing Designs for iPhone-Final Code challenge

Ok so I've made it to stage 3/5 still not sure what I'm doing wrong here? If anybody could help that would be much appreciated-My code is as follows:

NSArray *blogPosts= [[NSArray alloc] initWith: BlogLoader getRecentPosts];

3 Answers

Sorted! Thanks for getting back to me Ben. Are you planing another IOS foundations blog post any time soon?

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

I've started a 3rd post on Objective-C that I hope to finish soon, and then I'll be blogging about Android again. :)

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Hey Sam! blogPosts is a property of the view controller, so you can access it with self instead of creating your own variable. Then you just call the getRecentPosts method from BlogLoader as a class method (i.e. [ClassName methodName]).