Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom MKPinAnnotation callout bubble similar to default callout bubble

I want to create a custom callout bubble on MKMapView. But I want to create the call out bubble in the same manner of default bubble. So how to create a View look like annotaion in this image alt text
(source: objectgraph.com)

I want a custom custom view which look like "Parked Location" annotaion in the following image. With custom width, height etc. P

I am not able to add required details in Default bubble. That's why am creating custom bubble.

like image 660
S.P. Avatar asked Mar 29 '10 10:03

S.P.


2 Answers

I have developed a custom callout bubble that is nearly identical to the system callout bubble, but gives more flexibility over the height and content. It should be fairly trivial to adjust the appearance to suit your needs. See my post on the Asynchrony Solutions blog for example code and the steps required to implement a good callout replacement.

like image 111
JARinteractive Avatar answered Sep 19 '22 17:09

JARinteractive


You can check out this tutorial which provides an example on how to subclass the MKAnnotationView in order to provide custom content.

like image 45
Claus Broch Avatar answered Sep 22 '22 17:09

Claus Broch