2013-01-22 45 views
2

我正在構建一個iOS應用程序,該應用程序現在能夠獲取當前用戶位置並向其用戶顯示(使用CLLocationManager)。有沒有辦法顯示位置精度?Xcode - 如何獲取位置精度數據?

謝謝!

+0

看一次http://stackoverflow.com/questions/13323373/ios-get-current-location-using-gps-device – Spynet

+0

http://mobileorchard.com/HELLO-有-A-corelocation教程/ – Spynet

回答

3

在你CLLocationManagerDelegate

- (void)locationManager:(CLLocationManager *)manager 
    didUpdateToLocation:(CLLocation *)newLocation 
      fromLocation:(CLLocation *)oldLocation 
{ 
    CLLocationAccuracy accuracy = newLocation.horizontalAccuracy; 
}