Moving annotations in MKMapView according to server data (latitude and longitude)

后端 未结 2 695
梦如初夏
梦如初夏 2021-01-19 05:25

In my app I am showing location of some other person by getting their location (latitude and longitude) from server at particular interval.

After getting I have to

2条回答
  •  天涯浪人
    2021-01-19 05:28

    Why is that a performance problem? Have you mesaured it? You're just changing an array of objects, not even creating new instances.

    The AnnotationViews on the MapView will be reused anyway. There shouldn't be any problems with that.

提交回复
热议问题