views:

994

answers:

3

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

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. Thats why am creating custom bubble.

Plz help me..thanks..

+1  A: 

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

Claus Broch
thanks for the answer.I Know we can replace that callout bubble with another UIView. My Doubt is only about that tranparent background image..How to get that image. i Checked in all the mapkit framework. Or how we can draw a UIView like that default bubble.
Sijo
+1  A: 

I am answering to my question.

http://stackoverflow.com/questions/1963063/uiview-callout-bubble/1966624#1966624

But even this is not the right answer..am still searching for that..Will post if am getting

Sijo
+3  A: 

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.

JARinteractive
thank you for this wonderful solution......
Sijo
This link looks awesome and things work great in initial testing.
Jesse Rusak
the bubble and the gloss effect are all done without any png in this solution : just pure paths ! :O great ! (and as a consequence , this works also great for retina !)
yonel