Im working through a weather app tutorial. I am having trouble getting the reverse geocode of the location. It keeps getting the error that is in the title. I get what it is telling me just stuck on how to fix it.
Heres the code snippet:
if (1)
{
locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager startUpdatingLocation];
MKReverseGeocoder *geocoder = [[MKReverseGeocoder alloc] initWithCoordinate:locationManager];
geocoder.delegate = self;
[geocoder start];
}
else
{
[self performSelectorInBackground:@selector(showWeatherFor:) withObject:@"95014"];
}
Like I said, Im still learning so an explanation would be nice as to why you did what you did.