How to define the order of overlapping MKAnnotationViews?

后端 未结 7 1394
谎友^
谎友^ 2020-11-30 06:29

I have several MKAnnotations (and their corresponding views) in my map, and it sometimes gets really crowded. Now, the annotations in my app come in two flavors: some are bo

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 07:09

    Try to setup annotation view layer's zPosition (annotationView.layer.zPosition) in:

    - (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views;
    

提交回复
热议问题