How to Change text in NSLocationUsageDescription

随声附和 提交于 2019-12-11 08:34:23

问题


HI all I am currently trying to change the text in NSLocationUsageDescription. Currently it says: MyAPP "would like to use your current location"

I would like to change the text "would like to use your current location"

Does anyone have the steps to do this?

Currently In the plist I have custom text in the string value field but it doesn't change "would like to use your current location"

Any help greatly appreciated.!!


回答1:


(For iOS 6 +.) In the info.plist add the key "Privacy - Location Usage Description" the Type is String and in Value add the text you want to appear when the user is prompted to enable Location Services for your app.

Hava a look at the Apple Property List Key Reference for more info: https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html



来源:https://stackoverflow.com/questions/18473265/how-to-change-text-in-nslocationusagedescription

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!