我想设置所需的后台模式键值,以便我的应用程序也可以在后台运行.实际上,我想在应用程序处于后台时获取用户位置更新,但是在我的 info-plist 文件中没有称为必需后台模式键的键.如何设置此密钥并如何将其带入我的文件中?
I want to set required background mode key value so that my app also works in background. Actually i want to get the user location updates when the app is in background, but there is no key called required background mode key in my info-plist file. How to set this key and jow to bring this in my file?
在 Xcode 5 中,项目设置 -> 目标 -> 功能 -> 背景模式 -> 检查位置更新.
In Xcode 5, Project setting -> Target -> Capabilities -> Background modes -> check Location updates.
如果您使用的是早期版本的 Xcode,请设置 Location 的背景模式,如下图所示.
If you are using an earlier version of Xcode, set the background mode for Location as in the following screenshot.
这篇关于info-plist 文件中没有所需的背景模式键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
如何通过点击动画 UIImageview 以显示全屏?How to animate a UIImageview to display fullscreen by tapping on it?(如何通过点击动画 UIImageview 以显示全屏?)
停止 segue 并显示警报To stop segue and show alert(停止 segue 并显示警报)
iOS 5 故事板,以编程方式确定路径iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以编程方式确定路径)
图标已经包含光泽效果Icon already includes gloss effects(图标已经包含光泽效果)
UIEdgeInsetsMake 是如何工作的?How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
UIProgressView 和自定义跟踪和进度图像(iOS 5 属性UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定义跟踪和进度图像(iOS 5 属性))