iOS 8 requestWhenInUseAuthorization no Popup

前端 未结 6 2015
名媛妹妹
名媛妹妹 2020-12-04 12:25

I tried to make my AppProject iOS 8 ready. I had read a lot about

[_locationManager requestWhenInUseAuthorization];

and the entry in plist<

6条回答
  •  Happy的楠姐
    2020-12-04 12:55

    Here's a little gotcha. Make sure you're adding the NSLocationAlwaysUsageDescription or NSLocationWhenInUseUsageDescription keys to the main bundle plist and not one of your test target plists!

提交回复
热议问题