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

UIImage not showing on ViewController (Objective-C)

So I'm working on the playlist app, and I created an instance for each image in my ViewController to display the image that I have stored in my playlist array; but when I run my app, every image shows up except for one. I don't know what I'm doing wrong, my code and outlet connections look good to go as well. Some help would be very much appreciated.

Hi Joshua

Typically an error like this is due to an error iterating through the array (for example, starting the array at 1 instead of 0) - could you post your code?

1 Answer

I figured it out, it had to do with the name I gave to one of my images. I was referencing the image.pdf with a different name so it wasn't showing up.