简体   繁体   中英

MapKit Annotation Point title

在此处输入图片说明

Is this popover shown, on tapping the Annotation point, a built in or a view created by developer?

    MKPointAnnotation *annotationPoint = [[MKPointAnnotation alloc] init];
    annotationPoint.coordinate = annotationCoord;
    annotationPoint.subtitle = user.purchasedLocation;
    [mapView addAnnotation:annotationPoint];

I want to create a popover like the image shown above in my map view . When I added the above code to my app, it only showed the street address. Is there a built in method to display such kind of popover in MapKit framework, as shown above with user image and arrow image?

Thanks.

Look into this stackoverflow post Annotation with Image This will help you adding button and image in your annotation.

And this link Adding images to map Annotation

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