标签: ios cllocationmanager
我想使用天气应用等自定义提醒
而不是默认提醒
我该怎么办?提前致谢
答案 0 :(得分:3)
您必须在NSLocationAlwaysUsageDescription文件中添加NSLocationWhenInUseUsageDescription或plist密钥:
NSLocationAlwaysUsageDescription
NSLocationWhenInUseUsageDescription
plist
见下图:
在plist文件中添加这些键后,从设备或模拟器中删除应用程序并运行它。