更新时间:2022-12-11 17:21:28
使用常规MKAnnotationView,不是MKPinAnnotationView子类。即使您可以设置图像,也不能保证它会粘住,因为它可以并且会再次将引脚图像设置回来。
Use a regular MKAnnotationView, not the MKPinAnnotationView subclass. Even though you can set the image it isn't guaranteed to stick because it can and will set the pin image back again.