My application was working fine on iOS6 but it is crashing on iOS 7 due to bad access when I add overlay to MKMapView.My code is as follows
MKPolyline *polyl
Use following If you are creating poly lines in thread other than main thread:
[self performSelectorOnMainThread:@selector(addPolyLineToMap:) withObject:polyline waitUntilDone:NO]; -(void)addPolyLineToMap:(MKPolyline*)apolyline{ [mapview addOverlay:apolyline]; }