EXC_BAD_ACCESS with MKPinAnnotationView

后端 未结 2 1209
南笙
南笙 2021-01-21 09:24

I have a problem displaying my MKPinAnnotationView on the mapView in iOS. I get this error but i don\'t understand where the error comes from : \"EXC_BAD_ACCESS\". My code seems

2条回答
  •  遥遥无期
    2021-01-21 09:42

    Try:

    MKPinAnnotationView *pv = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:nil];
    

提交回复
热议问题