是否可以将您的 iPad 应用程序从 iOS 9 上的多任务处理中选择出来

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/30765157/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 06:21:06  来源:igfitidea点击:

Is it possible to opt your iPad app out of multitasking on iOS 9

iosxcodeipadios9multitasking

提问by Zia

I have a large app that I will need some time to optimize for iOS9.

我有一个大型应用程序,我需要一些时间来针对 iOS9 进行优化。

Edit: What I am worried about is all the UI getting squeezed together when the app window size is reduced. So my question is, is there any way to force full screen for the app?

编辑:我担心的是当应用程序窗口大小减小时所有 UI 都会被挤在一起。所以我的问题是,有没有办法强制应用程序全屏显示?

采纳答案by Sega-Zero

You have to modify your project to support multitasking. According to WWDC 2015 video, to adopt your app for multitasking, satisfy these requirements:

您必须修改您的项目以支持多任务处理。根据WWDC 2015 视频,要将您的应用程序用于多任务处理,请满足以下要求:

  1. Build your app with iOS 9 SDK
  2. Support all orientations
  3. Use Launch Storyboards
  1. 使用 iOS 9 SDK 构建您的应用
  2. 支持所有方向
  3. 使用启动故事板

So, if any of this is not done yet, your app will not be able to support multitasking.

因此,如果其中任何一项尚未完成,您的应用程序将无法支持多任务处理。

Of course, if you don't use size classes, put it at the top of the list.

当然,如果你不使用size classes,把它放在列表的顶部。

Edit: according to you question edit. There is a UIRequiresFullScreen key in Info.plist. See more at Apple docs

编辑:根据你的问题编辑。Info.plist 中有一个 UIRequiresFullScreen 键。在Apple 文档中查看更多信息

回答by hasan

To opt-out (disable) multi-tasking for your application:

要为您的应用程序选择退出(禁用)多任务处理:

Select your TargetGeneral Section→ Scroll Down and check Requires full screen

选择您的目标常规部分→ 向下滚动并选中需要全屏

It gets applied to the plist's UIRequiresFullScreenkey value.

它被应用于 plist 的UIRequiresFullScreen键值。

enter image description here

在此处输入图片说明

Note:Apps are required to support all screen orientations if it supports multitasking. Otherwise, apps will get the following error on publishing:

注意:如果应用程序支持多任务处理,则它需要支持所有屏幕方向。否则,应用程序将在发布时出现以下错误:

Invalid Bundle. iPad Multitasking support requires these orientations: ...

无效的捆绑。iPad 多任务支持需要以下方向:...

回答by Nilesh Patel

To opt out of Slide Over and Split View, do so explicitly by adding the UIRequiresFullScreenkey to your Xcode project's Info.plistfile and apply the Boolean value YES.

要选择退出 Slide Over 和 Split View,请通过将UIRequiresFullScreen键添加到 Xcode 项目的Info.plist文件并应用布尔值来显式执行此操作YES

You can set above thing using General tab of Targets, Select Requires Full Screen check. Refer below image for the sameenter image description here

您可以使用目标的常规选项卡设置上述内容,选择需要全屏检查。参考下图相同在此处输入图片说明

Note :

A user can disable Slide Over and Split View in Settings > General > Multitasking. If you think you've set up everything correctly and find that these features still don't work, check this setting.

笔记 :

用户可以在“设置”>“通用”>“多任务处理”中禁用“滑过”和“拆分视图”。如果您认为已经正确设置了所有内容,但发现这些功能仍然不起作用,请检查此设置。

See Adopting Multitasking Enhancements on iPad - Slide Over and Split View Quick Start.

请参阅在 iPad 上采用多任务处理增强功能 - 滑过和拆分视图快速入门

回答by bryanjclark

It's still possible to opt-out of iPad multitasking —?but Apple announced at WWDC 2019 that in April 2020, all iPad apps will be required to support multitasking.

仍然可以选择退出 iPad 多任务处理——但 Apple 在 2019 年 WWDC 上宣布,到2020 年 4 月,所有 iPad 应用程序都必须支持多任务处理

The original announcement and discussion is in the first few minutes of "Modernizing Your App for iOS 13", and there's a (brief) announcement on their developer-news siteas well.

最初的公告和讨论位于“为 iOS 13 现代化您的应用程序”前几分钟,并且在他们的开发者新闻网站上也有(简短的)公告