开发者

How do I draw custom "Callout Bubbles" (the place name transparent-gray overlay) in an iPhone application using non-google maps?

开发者 https://www.devze.com 2023-01-04 16:38 出处:网络
I\'m building an iPhone application with a map inside (using route-me, not MapKit). I have some markers on the m开发者_开发百科ap, and I want to have an overlay - similarly to the google maps one - t

I'm building an iPhone application with a map inside (using route-me, not MapKit).

I have some markers on the m开发者_开发百科ap, and I want to have an overlay - similarly to the google maps one - that appears once you click a marker:

A black - a bit transparent - overlay, with a button inside, and a little triangle pointing to the marker the overlay is referencing.

Thank you.


It looks like these things are called 'callout bubbles'. Apple has a MapCallouts sample that shows you how to customize them.


Read the quartz2d docu from Apple. They explain in detail how to create custom views.

0

精彩评论

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

关注公众号