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


I have a problem can any help me pleasethanks

Title: Assume you have images named 'Robot1.png','Robot2.png','Robot3.png','Robot4.png', create an array of UIImage objects called 'robotImages'.

My Answer: NSArray *robotImages = [[NSArray alloc] initWithObjects: [UIImage imageNamed:@"Robot1"]; [UIImage imageNamed:@"Robot2"]; [UIImage imageNamed:@"Robot3"]; [UIImage imageNamed:@"Robot4"], nil];

2 Answers

Micahyah Hawkins
Micahyah Hawkins
3,496 Points

I haven't taken this course yet but from what I'm seeing right away is you are leaving off the extension like Robot1.png and even possibly where they are located in the file path.

It doesn't need it