开发者

iOS: Draw text on MKMapView

开发者 https://www.devze.com 2023-02-16 10:35 出处:网络
I am looking for a way to draw text on a MKMapView.The text is needed to label some buildings on our campus, which I have already marked with a MKPolygon, but I would also like to add a text label.

I am looking for a way to draw text on a MKMapView. The text is needed to label some buildings on our campus, which I have already marked with a MKPolygon, but I would also like to add a text label.

Is this possible using a UILabel in a custom annotation? Or 开发者_运维问答is another method better?


There's nothing stopping you from adding a UILabel as a subview to the MKMapView.

0

精彩评论

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