【发布时间】:2011-10-31 11:46:48
【问题描述】:
我想使用动画翻转和展开按钮
代码:
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:5.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:mybutton cache:YES];
[mybutton setFrame:CGRectMake(mybutton.frame.origin.x, mybutton.frame.origin.x, 200, 200)];
[UIView commitAnimations];
这个动画有问题:
- 按钮正在翻转,但在进行半圆形翻转后它正在扩展。
- 按钮翻转后位置不准确。
我该如何解决?
【问题讨论】:
标签: iphone objective-c animation flip