当我改变另一个位置的纬度和经度值时,我的应用程序会自动关闭,请帮忙解决?
if (1)
{
CLLocationCoordinate2D cordi;
cordi.latitude = 45.574779;
cordi.longitude = -122.685366;
MKReverseGeocoder *coder = [[MKReverseGeocoder alloc] initWithCoordinate:cordi];
coder.delegate = self;
[coder start];
}
else
{
[self performSelectorInBackground:@selector(showWeather:) withObject:@"97217"];
}