Q:

userLocation.coordinate gave me wrong value

when i try to get the current location using  
CLLocationCoordinate2D CurrentLocation;
CurrentLocation = map.userLocation.coordinate;

i get the follwoing values:
CurrentLocation.latitude= -180.000000;
CurrentLocation.longitude= -180.000000;

and it is not my location at all.
do you know what is missing in this?

A:

Firstly, make sure that you have set the mapView's showUserLocation to TRUE.
Secondly, check that the value is not nil, as the mapView needs to locate the user first, and that takes a few seconds.

