【发布时间】:2011-02-08 09:46:29
【问题描述】:
您好,我对 iPad 上的旋转有疑问,我已经搜索但没有找到正确的遮阳篷。
在 iPad 应用程序中,当我打开一个特殊的覆盖时,我可以旋转到所有界面方向,我会将界面方向锁定为横向,只要覆盖打开,应用程序就不应旋转。当我关闭此覆盖时,应启用旋转。
希望有人能帮帮我
【问题讨论】:
标签: iphone xcode ipad ios rotation
您好,我对 iPad 上的旋转有疑问,我已经搜索但没有找到正确的遮阳篷。
在 iPad 应用程序中,当我打开一个特殊的覆盖时,我可以旋转到所有界面方向,我会将界面方向锁定为横向,只要覆盖打开,应用程序就不应旋转。当我关闭此覆盖时,应启用旋转。
希望有人能帮帮我
【问题讨论】:
标签: iphone xcode ipad ios rotation
是的,您可以做到这一点。我没有测试过这段代码,但我认为它会起作用。
- (BOOL)shouldAutorotateToInterfaceOrientation(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations.
if (showing_OVERLAY == YES) {
return NO;
}
return YES;
}
【讨论】: