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 View Controller Transitions Implementing Full Screen Transitions

Warning THDetailViewController

I implemented the code for the transition:

https://www.dropbox.com/s/55dand8la8kviwg/Code_transition.png

When I tap on a picture the DetailView doesn't load and I get this message in my log:

https://www.dropbox.com/s/0gvw7entdaa7iyq/Error_log.png

What should I do?

Thanks!

Tawanda Kanyangarara
Tawanda Kanyangarara
4,284 Points

I have the same problem, is did you manage to find a fix

Same problem here... did you found any solution?

1 Answer

You might have set the UITransitionContextToViewControllerKey to "From" instead of "To" in PresentDetailTransition.m

  • (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext { UIViewController *detail = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey];