Ganesh Nayak
Ganesh Nayak

Reputation: 798

MapKit Annotation Point title

enter image description here

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.

Upvotes: 0

Views: 562

Answers (1)

Omer Waqas Khan
Omer Waqas Khan

Reputation: 2413

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

Upvotes: 1

Related Questions