我正在开发一个应用程序,我必须LocationUpdate
在其中跟踪. 当我把它放回去时,它又开始了,当我在一段时间后把它放到后台时,它又停止了。Background
Foreground
Background
Location
Foreground
我找不到问题,请尽可能帮助我。
set desired Accuracy to best
use - (void)startUpdatingLocation
Now in ios6: there is
locationManager:didUpdateLocations:
in ios5 there is
locationManager:didUpdateToLocation:fromLocation:
the first delivers the locations buffered in the background and keeps your application sleeping and wakes it up with a sequence of fixes, while the ios5 method delivers the location all of the time.