iOS 8 Map Kit Obj-C Cannot Get Users Location

前端 未结 8 737
[愿得一人]
[愿得一人] 2020-11-27 11:45

I am working with Map Kit in iOS 8 using Obj-C NOT SWIFT. I cannot get the device location it is set a 0.00, 0.00 and I am getting the error:

Trying to start         


        
8条回答
  •  北荒
    北荒 (楼主)
    2020-11-27 12:06

    Further to Mikes answer, I found that using both [self.locationManager requestWhenInUseAuthorization]; and [self.locationManager requestAlwaysAuthorization]; as demonstrated in his code does not work. You should only use ONE.

    I assume some further changes were made with a more recent/stable version of the API.

提交回复
热议问题