Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 904
Karim Benhmida Avatar asked Apr 27 '26 00:04

Karim Benhmida


1 Answers

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.

like image 146
Paul Cezanne Avatar answered Apr 28 '26 21:04

Paul Cezanne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!