简体   繁体   English

注解在iOS 9中变为默认状态

[英]Annotation turn to it's default state in iOS 9

In iOS 9 map annotation is showing up as black pin for current location and other as red pin. 在iOS 9中,地图注释显示为当前位置的黑色大头针,其他显示为红色大头针。 My custom assets are missing and also on tap my custom callout view is not showing up. 我的自定义资产丢失,并且在点击时我的自定义标注视图也没有显示。 I am not sure what happening. 我不确定发生了什么。 Same code is running in iOS 8 and everything work as expected. 相同的代码在iOS 8中运行,并且一切正常。 Any idea? 任何想法?

在此处输入图片说明

You have to subclass your annotation view from MKAnnotationView , not from MKPinAnnotationView . 您必须从MKAnnotationView而不是MKPinAnnotationView注释视图。 I had the same issue and I solved my problem with this. 我遇到了同样的问题,并为此解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM