iPad上的横幅通知显示倒挂时,应用程序将推出景观(左home键) [英] notification banner on ipad displayed upside down when app is launching Landscape (left home button)
问题描述
我有这样的支持在info.plist中两个指向我组支持的接口方向为横向(右home键)和横向(左home键)的iPad应用程序。我还设置初始界面方向设置为横向(右home键)。
I had an iPad app that supports two Orientation I set Supported interface orientations on info.plist to Landscape (right home button) and Landscape (left home button). I also set Initial interface orientation to Landscape (right home button).
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight];
}
当我收到推送通知和我的应用程序被关闭。我开始应用程序不是从通知。通知横幅上上下倒置。这只发生,当我抱着景观(左home键)的iPad。有我丢失的东西?任何帮助将是AP preciated。由于提前,
When I receive push notification and my app is closed. And I started the app not from notification. The notification banner appears up-side down. This happens only when I'm holding ipad on Landscape (left home button). Is there something I'm missing? Any help would be appreciated. Thanks in advance,
推荐答案
我也面临着同样的问题,试了很多办法;
在我的应用我只需要横向的,所以我设置
I am also facing same issue and tried many ways; In my app I require only landscape orientation so I set
返回UIInterfaceOrientationIsLandscape(interfaceOrientation);
在 shouldAutorotateToInterfaceOrientation
的每个的ViewController
和的info.plist
支持的接口方向我设置
and in info.plist
for supported interface orientation I am setting
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
这解决了我的问题。
这篇关于iPad上的横幅通知显示倒挂时,应用程序将推出景观(左home键)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!