How to set accuracy and distance filter when using MKMapView

前端 未结 3 1055
说谎
说谎 2020-12-07 10:29

When i use setShowsUserLocation with MKMapView to track user location, how do I set the accuracy and distance filter? I am not talking about

3条回答
  •  伪装坚强ぢ
    2020-12-07 10:59

    You can't set the accuracy, however, you can get the accuracy via the userLocation in the MKMapView delegate method.

    - (void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
    {
        NSLog(@"%f", userLocation.location.horizontalAccuracy);
    }
    

提交回复
热议问题