iPad Multitasking支持需要這些方向

本文翻譯自:iPad Multitasking support requires these orientations

I'm trying to submit my universal iOS 9 app to Apple (built with Xcode 7 GM) but I receive this error message for the bundle in iTunes Connect, just when I select Submit for Review : 我正在嘗試將我的通用iOS 9應用程序提交給Apple(使用Xcode 7 GM構建)但我在iTunes Connect中收到此錯誤消息,就在我選擇提交審閱時

Invalid Bundle. 無效的捆綁包。 iPad Multitasking support requires these orientations: 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'. iPad Multitasking支持需要以下方向:'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'。 Found 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown' in bundle 'com.bitscoffee.PhotoMarks.iOS'. 在'com.bitscoffee.PhotoMarks.iOS'包中找到'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown'。

My app has support for Portrait and PortraitUpsideDown orientations but not for the other two. 我的應用程序支持Portrait和PortraitUpsideDown方向,但不支持其他兩個方向。

So is there a work around this imposed requirement, or all iOS 9 iPad apps have to have all four orientations? 那麼是否有解決這個強制要求的工作,或者所有iOS 9 iPad應用程序必須具有所有四個方向?


#1樓

參考:https://stackoom.com/question/2CcGq/iPad-Multitasking支持需要這些方向


#2樓

iPad多任務支持需要所有方向,但您的應用程序不需要,因此您需要選擇退出它,只需將UIRequiresFullScreen鍵添加到Xcode項目的Info.plist文件中並應用布爾值YES


#3樓

as Michael said, 正如邁克爾所說,

Check the "Requires full screen" of the target of xcodeproj, if you don't need to support multitasking. 如果您不需要支持多任務處理,請檢查xcodeproj目標的“需要全屏”。

or Check the following device orientations 或檢查以下設備方向

  • Portrait 肖像
  • Upside Down 上下翻轉
  • Landscape Left 風景左
  • Landscape Right 景觀正確

In this case, we need to support launch storyboard. 在這種情況下,我們需要支持啓動故事板。


#4樓

In Xcode, check the "Requires Full Screen" checkbox under General > Targets, as shown below. 在Xcode中,選中General> Targets下的“Requires Full Screen”複選框,如下所示。

在此輸入圖像描述


#5樓

I am using Xamarin and there is no available option in the UI to specify "Requires full screen". 我正在使用Xamarin,並且UI中沒有可用的選項來指定“需要全屏”。 I, therefore, had to follow @Michael Wang's answer with a slight modification. 因此,我不得不稍微修改@Michael Wang的回答。 Here goes: 開始:

Open the info.plist file in a text editor and add the lines: 在文本編輯器中打開info.plist文件並添加以下行:

<key>UIRequiresFullScreen</key>
<true/>

I tried setting the value to "YES" but it didn't work, which was kind of expected. 我嘗試將值設置爲“YES”,但它不起作用,這是預期的。

In case you are wondering, I placed the above lines below the UISupportedInterfaceOrientations section 如果您想知道,我將上面的行放在UISupportedInterfaceOrientations部分下面

<key>UISupportedInterfaceOrientations~ipad</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationPortraitUpsideDown</string>
</array>

Hope this helps someone. 希望這有助於某人。 Credit to Michael. 感謝邁克爾。


#6樓

在Xcode>常規>設置“需要全屏”(在隱藏狀態欄下)轉到您的項目目標爲true。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章