[英]iOS settings (Privacy -> Location services -> select my app -> change allow access) crashed
I am really curious about this issue. 我对这个问题很好奇。 i have added following things in plist 我在plist中添加了以下内容
1.NSLocationAlwaysUsageDescription -> YES 1.NSLocationAlwaysUsageDescription - >是
2.NSLocationWhenInUseUsageDescription -> YES 2.NSLocationWhenInUseUsageDescription - > YES
but when I try to change "allow location access" , iOS settings App crashed in iPhone 5(iOS8)..it works on iPhone 4 and 4s (iOS7).can anyone help me to solve this issue ? 但是当我尝试更改“允许位置访问”时,iOS设置应用程序在iPhone 5(iOS8)中崩溃..它可以在iPhone 4和4s(iOS7)上运行。可以有人帮我解决这个问题吗?
Finally I found answer. 最后我找到了答案。 we need to give String only for NSLocationAlwaysUsageDescription and NSLocationWhenInUseUsageDescription.. I gave Boolean value for these services..that was cause of issue.. 我们需要为NSLocationAlwaysUsageDescription和NSLocationWhenInUseUsageDescription提供String ..我为这些服务提供了布尔值..这是问题的原因..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.