我遇到模态视图控制器旋转问题。
在将屏幕从纵向旋转到横向时,我的模态视图控制器保持纵向,尽管:
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
self.view.frame = [self frameWithInterfaceOrientation:toInterfaceOrientation];
}
当我调试时,我看到视图框架上的所有内容都是正常的。看起来整个控制器在旋转到横向后放错了。
https://drive.google.com/file/d/0B7RhXyt7hwQWSUpjaXZiVjlRMEU/view?usp=sharing