在加入标签功能后台模式 [英] Adding background mode on Capabilities tabs

查看:221
本文介绍了在加入标签功能后台模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用X code 6.3,我只是增加了功能选项卡上蓝牙背景模式:

I am using Xcode 6.3 and I just added bluetooth background mode on the capability tab:

有需要的一个步骤,上面写着键中的所需的背景模式添加您的Info.plist文件。

There is a step required that says "Add the 'Required Background Modes" keys to your info.plist file.

不过苹果<一个href=\"https://developer.apple.com/library/$p$prelease/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html\"相对=nofollow>文档说,这是自动添加(见下文),如果我检查我的Info.plist文件,我觉得以下几点:

However apple documentation says that this is added automatically (see below) and if I check my info.plist file I find the following:

声明您的应用程序的支持后台任务支持某些类型
  背景的执行必须事先由应用程序声明
  使用它们。在X code 5及更高版本,声明后台模式的
  从应用程序的项目设置功能选项卡支持。
  启用后台模式选项将UIBackgroundModes关键
  你的应用程序的Info.plist文件。选择一个或多个复选框中增加了
  相应的背景模式值的关键。表3-1列出了
  您可以指定后台模式,是X code分配给值
  在UIBackgroundModes关键在应用程序的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.

难道这还不够吗

如何测试是否工作正常?

How can I test if it works correctly?

推荐答案

是的,这就够了。用户界面直接从plist中取值,并写在那里。

Yes, this is enough. The UI is taking the values directly from the plist and writing them there.

您可以打开手动plist中,看看写有确保。这只是一个文本文件。

You can open the plist manually and see what is written there to make sure. It's just a text file.

这篇关于在加入标签功能后台模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆