地图类型更改后,图像是否更改? [英] Pin images change after map type change?

查看:107
本文介绍了地图类型更改后,图像是否更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是加载一个简单的地图,在引脚注释上自定义引脚图像。首次将映像中的引脚图像正确加载。当我更改地图类型时,引脚会以默认格式更改。您有什么想法可以解决这个问题。任何帮助将不胜感激。感谢提前..

I am just loading a simple map with customize pin images on pin annotations. First time it loads the pin images in map correctly. When i change map type the pins are change in their default format.Guys do you have any idea about this problem. Any help will be appreciated.Thanks in advance..

推荐答案

viewForAnnotation ,请确保您正在创建一个简单的 MKAnnotationView 而不是 MKPinAnnotationView

In viewForAnnotation, make sure you are creating a plain MKAnnotationView and not an MKPinAnnotationView.

这篇关于地图类型更改后,图像是否更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆