mkmapview

MKMapView crashing if zooming while adding annotations

有些话、适合烂在心里 提交于 2020-06-26 16:43:10
问题 It looks like I'm running into an issue where I can reliably cause my MKMapView to crash if I'm adding annotations while the map's visible region is being changed. I've boiled the code that is causing it down to a pretty simple implementation, and I'm reproducing it here: NSMutableArray *pointAnnotationArray = [[NSMutableArray alloc] init]; MKCoordinateRegion coordRegion = [mapViewOutlet region]; float randMax = 0.1; for (int i = 0; i < 100; i++){ float randomDeviation1 = (((float)