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..
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
In viewForAnnotation
, make sure you are creating a plain MKAnnotationView
and not an MKPinAnnotationView
.