iPad旋转中的文本框动画
我开始将iPhone应用程序升级到通用应用程序,并且我有一个问题:当用户旋转iPad时,如何为两个文本框设置动画效果?
在肖像中,他们处于视野的中间,但在风景中,我希望他们位于视野的右侧。
我该如何做动画?
谢谢,
瑞
  当界面旋转时,你的视图控制器的willAnimateRotationToInterfaceOrientation:duration:方法将被调用。  它从动画块内部调用以进行旋转,因此对任何动画属性的更改都应该自动进行动画。  实现应该看起来像这样: 
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration {
    if (UIInterfaceOrientationIsLandscape(interfaceOrientation)) {
        // Move views to the correct positions for landscape orientation
    } else {
        // Move views to the correct positions for portrait orientation
    }
}
