Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


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