开发者

Custom MKPinAnnotation callout bubble similar to default callout bubble

开发者 https://www.devze.com 2022-12-24 06:22 出处:网络
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

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

Custom MKPinAnnotation callout bubble similar to default callout bubble

(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.


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.


You need to use MKCircle and MKCircleView.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号