Try this method:
- (void) setAnimationTransition: (UIViewAnimationTransition) transition forView: (UIView *) cache cache: (BOOL) cache
Options: Transition Transition to viewing. Possible values are described in UIViewAnimationTransition.
View View of the application transition to.
cache If YES, the images before and after the image are displayed once and are used to create frames in the animation. Caching can improve performance, but if you set this parameter to YES, you should not update the view or its subitems during the transition. Updating a view and its children can affect the caching behavior and cause the contents of the view to display incorrectly (or in the wrong place) during animation. You must wait until the transition is complete to update the view.
If NO, the view and its contents should be updated for each frame of the transition animation, which can significantly affect the frame rate.
Discussion If you want to change the appearance of the view during the transition, for example, flip from one view to another, and then use the container view, an instance of UIView, as follows:
Start the animation block. Set the transition to the container view. Remove the view from the container view. Add a new view to the container view. Lock the animation block.
jekmac
source share