简体   繁体   中英

Need to show Image on Pin Pointer on MapView

For map-view the pin pointer..

It show's title... for location... and subtitle ...

Now for the same box in pin point. Need to show image. how to show image on pin.. pointer.[any static image.]

  • (NSString *)title

  • (NSString *)subtitle

This both are working fine...

How to do about the image on the pin pointer.

@thanks in advance.

I suppose you mean adding an image to your MKAnnotationView is that right ? The image you can add is part of the MKAnnotationView , not part of the MKAnnotation . See property image of the MKAnnotationView .

Take a look at WeatherMap apple example. Good luck.

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