我已经开发了一个iOS应用程序,并在iOS6设备上进行了测试。在测试时,我意识到我的应用程序没有像预期的那样对方向变化做出响应。
以下是我的代码:
// Autorotation (iOS >= 6.0)
- (BOOL) shouldAutorotate
{
return NO;
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskAll;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
return UIInterfaceOrientationMaskPortrait;
}
确切地说,我想知道iOS中的方向更改调用了哪些方法。
https://stackoverflow.com/questions/13836578
复制相似问题