OGeek|极客世界-中国程序员成长平台

标题: ios - 如何使用 Ionic/Cordova 在 iOS 上启用多任务处理? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 18:54
标题: ios - 如何使用 Ionic/Cordova 在 iOS 上启用多任务处理?

我一直在尝试在 iOS 上的 Ionic/Cordova 应用上启用多任务处理,但没有成功。

我已按照 [CB-9161] Support iPad multitasking in iOS 9 中的步骤进行操作:

The three rules are:

  1. Build your apps with the iOS 9 SDK
  2. Support all orientations
  3. Use Launch Storyboards

Fix for (1) is:

  1. Use Xcode 7 (Cordova always uses the current SDK)

Fix for (2) is:

  1. Click your Project icon in the Project Navigator
  2. Click on your Target
  3. Select the "General" tab
  4. Go to the "Deployment Info" section
  5. Select the "iPad" button segment
  6. For "Device Orientation", select all four checkboxes (Portrait, Upside Down, Landscape Left, Landscape Right)

Fix for (3) is:

  1. Add a new File: Launch Screen --> "Launch Screen.storyboard"
  2. Click your Project icon in the Project Navigator
  3. Click on your Target
  4. Select the "General" tab
  5. Go to the "App Icons and Launch Images" section
  6. Select "Launch Screen.storyboard" from the "Launch Screen File" dropdown

我可以在我的应用打开之前看到新的启动屏幕出现,但我仍然无法 Split View。

供您引用,我正在使用 Xcode 8.2.1 的 Mac 上构建。 所有 Device Orientation 框都打勾,需要全屏 为空白。

有什么想法或方向可以给我吗?



Best Answer-推荐答案


我刚刚发现了问题:我使用的是 cordova-plugin-ipad-multitasking插件解决this issue .事实证明,这个插件阻止了多任务处理(我相信通过强制“需要全屏”选项)。删除插件解决了这个问题。

关于ios - 如何使用 Ionic/Cordova 在 iOS 上启用多任务处理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42158282/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4