Karim Benhmida
Karim Benhmida

Reputation: 195

iOS unknown delay between animationControllerForPresentedController and animateTransition

I'm having an annoying issue with a custom transition using UIViewControllerContextTransitioning when triggering the animation from a tableView

I followed many tutorials out there, to name a few : - http://www.brightec.co.uk/blog/ios-7-custom-view-controller-transitions-and-rotation-making-it-all-work - http://objectivetoast.com/2014/03/17/custom-transitions-on-ios/

This is the exact problem I have (but no solution :/ ): Custom transition animation unknown delay between animationControllerForPresentedController and animateTransition Sometimes it works, sometimes it's just to slow.

I don't know what happens behind the scenes between animationControllerForPresentedController and animateTransition. If you have an idea on how to debug that I'd like to hear it.

Upvotes: 3

Views: 316

Answers (1)

Paul Cezanne
Paul Cezanne

Reputation: 8741

Even without seeing your code I'm pretty sure you having a main thread issue. (see http://www.raywenderlich.com/31166/25-ios-app-performance-tips-tricks#mainthread - understand that, both about not blocking the main thread and always doing UI on the main thread.

Upvotes: 1

Related Questions