如何通过放大 MKMapView 来缩放图标?

发布于 2024-08-09 07:26:57 字数 167 浏览 4 评论 0原文

如何让图标的大小随着 MKMapView 中的缩放而缩放?据我所知没有办法做到这一点吗?

我唯一能想到的就是让 MKMapView 成为某个 UIView 的子视图,并捕获此父视图中的所有用户输入,缩放图像并缩放中继到子视图。

How can I have the size of my icons scale with zoom in a MKMapView? As far as I can tell there is no way to do this?

The only thing I can think of is to have the MKMapView a subview of some UIView, and catch all of the user input in this parent view, scale the images on zoom and relay to the subview.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

故人爱我别走 2024-08-16 07:26:57

您需要对每个 mapRegionChanged 上的注释视图执行 CGTransform

You need to do a CGTransform on the annotation views on each mapRegionChanged

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文