Finding user location before map loads
- by 4thSpace
I'm trying to find the user's location using:
CLLocationCoordinate2D _location;
CLLocation *userLoc = nil;
if(appDelegate.clLocationManager.locationServicesEnabled){
userLoc = mapView.userLocation.location;
_location = userLoc.coordinate;
}
The problem is that I haven't yet initialized the map so the above doesn't work. Is there a way to get the user's location without using mapkit? Or should I be using a different technique?