如何使用请求警报自定义位置服务

时间:2016-07-13 04:15:55

标签: ios cllocationmanager

我想使用天气应用等自定义提醒

Weather

而不是默认提醒

enter image description here

我该怎么办?提前致谢

1 个答案:

答案 0 :(得分:3)

您必须在NSLocationAlwaysUsageDescription文件中添加NSLocationWhenInUseUsageDescriptionplist密钥:

见下图:

enter image description here

在plist文件中添加这些键后,从设备或模拟器中删除应用程序并运行它。