HowTo initialise MKMapView with a given user location?

后端 未结 4 457
滥情空心
滥情空心 2020-12-04 09:14

My app knows the current user position (CoreLocation.framework). As soon as the user opens a new MapView his iPhone starts searching for the current position again. Is it p

4条回答
  •  误落风尘
    2020-12-04 09:26

    Try setting the showUserLocation property to false on initialisation and then restore the region the map view previously had (you will obviously have to store this before the previous map is destroyed).

    Is this what you wanted?

提交回复
热议问题