setAnimationTransition:forView:cache: objects are "glitching" during transition
I have UIViewAnimationTransitionFlipFromLeft in my application and it displays a new view with a text field and two buttons. On the iPhone, as it's loading th开发者_StackOverflow社区e view, the text field will be scrunched up and the text on the buttons off-center until the view has loaded, then after a very small delay, the text field and buttons' centerings will correct themselves. What am I doing wrong?
I found the answer while searching through some topics on StackOverflow. For anyone who is interested, it was the ORDER of method calls that made the difference.
Original code:
- Set up the transition
- removeFromSuperview view1
- addSubview view2
- commitAnimations
No my drawing glitches when changed to:
- removeFromSuperview view1
- addSubview view2
- set up the transition
- commitAnimations
精彩评论