我创建了 TTPhotoViewController 的子类,当我旋转 iPhone 时,当前图像也被旋转,但不是导航栏和工具栏(带有上一个和下一个按钮的栏)。在我的子类中,我覆盖了该shouldAutorotateToInterfaceOrientation:
方法:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
我试图覆盖 willRotateToInterfaceOrientation:duration: e 在里面设置了一个断点,但似乎从未调用过这个方法。