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 Build a Photo Browser iPhone App Gestures Creating a Detail View Controller

Stephen Peltier
Stephen Peltier
9,681 Points

Making me click on two images to view an image

I'm getting some strange behavior where it's making me click on two different images to see the standard sized image in its own image view.

I can keep (single)clicking on the same image and nothing will happen, then once I click on a second image, the first image I clicked on will appear in the new image view.

Everything else works as expected.

2 Answers

Stephen Peltier
Stephen Peltier
9,681 Points

Figured it out. was calling didDeselectItemAtIndexPth instead of didSelectItemAtIndexPath.

Daniel Benito
Daniel Benito
4,341 Points

I ran into this same issue. Thanks for saving me some time. :D