The transition FromView does everything right, BUT without animation. What for?

Here is the code:

[UIView transitionFromView:mapView toView:tableView duration:5.0 options:UIViewAnimationOptionShowHideTransitionViews|UIViewAnimationTransitionFlipFromLeft completion:NULL]; 

After calling this method, mapView is hidden and the tableView is visible, but there is no animation! I changed the duration to 5 seconds to make sure that I don’t miss the animation, but it really doesn’t come to life. Is there something wrong with the above line or do I need to do something to activate the animation?

+4
source share
1 answer

It looks like you are using the wrong version of the animation. You must use.

 UIViewAnimationOptionTransitionFlipFromLeft 

You are currently using

 UIViewAnimationTransitionFlipFromLeft 
+9
source

Source: https://habr.com/ru/post/1333528/


All Articles