开发者

iPhone Core Location: Custom pin image disappears when map type changes

开发者 https://www.devze.com 2023-01-13 20:10 出处:网络
I have a segmented controller which sits on a MKMapView. When I change MKMapType, the image of my custom pins revert to the default red. The title and subtitle, along 开发者_StackOverflowwith coordina

I have a segmented controller which sits on a MKMapView. When I change MKMapType, the image of my custom pins revert to the default red. The title and subtitle, along 开发者_StackOverflowwith coordinates remain intact. Can anyone shed some light on a possible solution?


I had a similar problem a while ago.

Why does a custom MKMapView annotation image disappear on touch?

Make sure you're using MKAnnotationView instead of MKPinAnnotationView everywhere in your viewForAnnotation method.

0

精彩评论

暂无评论...
验证码 换一张
取 消