gpt4 book ai didi

ios - 在功能选项卡上添加背景模式

转载 作者:行者123 更新时间:2023-11-28 21:47:08 28 4
gpt4 key购买 nike

我正在使用 Xcode 6.3,我刚刚在功能选项卡上添加了蓝牙背景模式:

enter image description here

需要执行一个步骤,说明“将‘必需的背景模式’键添加到您的 info.plist 文件中。

然而苹果documentation说这是自动添加的(见下文),如果我检查我的 info.plist 文件,我会发现以下内容:

Declaring Your App’s Supported Background Tasks Support for some types of background execution must be declared in advance by the app that uses them. In Xcode 5 and later, you declare the background modes your app supports from the Capabilities tab of your project settings. Enabling the Background Modes option adds the UIBackgroundModes key to your app’s Info.plist file. Selecting one or more checkboxes adds the corresponding background mode values to that key. Table 3-1 lists the background modes you can specify and the values that Xcode assigns to the UIBackgroundModes key in your app’s Info.plist file.

enter image description here

这就够了吗?

如何测试它是否正常工作?

最佳答案

是的,这就足够了。 UI 直接从 plist 中获取值并将它们写入那里。

你可以手动打开plist,看看里面写的是什么来确定。这只是一个文本文件。

关于ios - 在功能选项卡上添加背景模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29693786/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com