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.

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