0
有没有办法启用旋转,但没有动画时,您将设备从纵向转为横向?有没有办法在没有动画的UIViewController中进行旋转?
我看:
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
...但我不知道怎样才能将“持续时间”属性设置为0,从而消除动画。也许有更好的办法?
感谢