Custom MKPinAnnotation callout bubble similar to default callout bubble

前端 未结 3 1712
别那么骄傲
别那么骄傲 2020-11-29 04:15

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 annot

相关标签:
3条回答
  • 2020-11-29 04:37

    You need to use MKCircle and MKCircleView.

    0 讨论(0)
  • 2020-11-29 04:40

    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.

    0 讨论(0)
  • 2020-11-29 04:53

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

    0 讨论(0)
提交回复
热议问题