How to work with deferred location iOS 6?

前端 未结 5 2038
再見小時候
再見小時候 2020-12-01 15:22

I am trying to use the new iOS 6 feature of deffered location updates but keep on getting this error :

didFinishDeferredUpdatesWithError :Error Domain

5条回答
  •  余生分开走
    2020-12-01 16:05

    In my testing I have found that deferred updates only work in iOS 6.0.1 or greater, but not 6.0. I tested on 2 phones 1 which I updated and 1 which I left using 6.0 for testing reasons. I believe this is the reason why the simulator doesn't work and if your phone isn't updated yet it is likely why that isn't working either.

    Also make sure you implement

    – locationManager:didUpdateLocations:

    rather than the now deprecated

    – locationManager:didUpdateToLocation:fromLocation:

    as it is required for use with deferred location updates.

提交回复
热议问题