简体   繁体   中英

Is it possible to add a custom image in the info pane in mapkit?

I am trying to add a custom image for the info pane in google map once a user clicks on a marker. I can't find anything in the MKAnnotation class. Any help would be appreciated.

Apple's MapCallouts code sample demonstrates how do do this with the callout and their Weather Map sample shows how to do custom annotation views. There documentation is really excellent and these samples are both helpful.

http://developer.apple.com/iphone/library/samplecode/MapCallouts/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009746

http://developer.apple.com/iphone/library/samplecode/WeatherMap/Introduction/Intro.html#//apple_ref/doc/uid/DTS40009491

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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