Optimizing Code for MKMapView - Large Number of Annotations

后端 未结 2 534
别跟我提以往
别跟我提以往 2020-12-25 09:11

I have a modal view in my app which displays a UIMapView. I then add a large number of annotations (over 800) to this map view (code below).

The problem is that the

2条回答
  •  执笔经年
    2020-12-25 09:27

    I completely agree with Anna. But consider that 800 AnnotationViews at the same time will result in a extreme laggy interface. So if your map should provide user interaction like scrolling or zooming you better implement some kind clustering of your annotation views.

提交回复
热议问题