You are updating the user interface from the non-interface - Thread, this will not work
You will need to call code segments that update your ui inside a UIThread block as follows:
for instance
[mapView removeAnnotations:annotationsOnMap]
must be called in UI-Thread
dispatch_async(dispatch_get_main_queue(), ^{
[mapView removeAnnotations:annotationsOnMap];
});
, main_queue
dispatch_async(dispatch_get_main_queue(), ^{
});