iOS 8 requestWhenInUseAuthorization no Popup

前端 未结 6 2010
名媛妹妹
名媛妹妹 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条回答
  •  無奈伤痛
    2020-12-04 12:45

    Had the same problem caused because I was instantiating CLLocationManager in a local var inside a method, solved it making the CLLocationManager a class property.
    After a while I found the solution here, but I'm leaving it here since this is the first result in google, hope I save you some time:

    requestWhenInUseAuthorization() not Work in iOS 8 With NSLocationWhenInUseUsageDescription Key in Info.plist

提交回复
热议问题