我的应用仅在手机上固定为人像,在键盘上固定为横向。如何在Xcode中正确设置?我只有一个选择,我在那里选择了肖像。但是在iPad上,这是错误的,但是我不知道该如何更改?
编辑:我的应用程序委托中有
- (UIInterfaceOrientationmask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
if (isPad) {
return UIInterfaceOrientationmaskLandscape;
} else {
return UIInterfaceOrientationmaskPortrait;
}
}
这就是整个应用程序的工作方式。但是,当我在iPad上从Google admob请求插页式广告时,该广告无法正常工作并显示错误,我认为这是因为它可能采用了主要设置“纵向”?