Instance Property

userLocationVisible

A Boolean value indicating whether the device’s current location is visible in the map view.

Declaration

@property(nonatomic, readonly, getter=isUserLocationVisible) BOOL userLocationVisible;

Discussion

This property tells you whether the icon used to represent the user’s current location is visible in the map view. When determining whether the current location is visible, this property factors in the horizontal accuracy of the location data. Specifically, if the rectangle represented by the user’s current location plus or minus minus the horizontal accuracy of that location intersects the map’s visible rectangle, this property contains the value YES. If that location rectangle does not intersect the map’s visible rectangle, this property contains the value NO.

If the user’s location cannot be determined, this property contains the value NO.

See Also

Displaying the User’s Location

showsUserLocation

A Boolean value indicating whether the map should try to display the user’s location.

userLocation

The annotation object representing the user’s current location.

userTrackingMode

The mode used to track the user location.

setUserTrackingMode:animated:

Sets the mode used to track the user location with optional animation.