如何通过放大 MKMapView 来缩放图标?
如何让图标的大小随着 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要对每个
mapRegionChanged
上的注释视图执行CGTransform
You need to do a
CGTransform
on the annotation views on eachmapRegionChanged