如何找到可见MKMapView可见屏幕区域的半径?
我想知道iPhone屏幕中可见区域的半径,因为我会缩小和放大可见区域会发生变化,所以我想知道该特定区域的半径,我该怎么做?
I want to know the radius of visible area in iphone screen, as I will zoomout and zoom in the visible area will change, so I want to know the radius of that particular area, how can I do it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它不是所需的半径。
您需要使用mapView 中的region 参数。
查一下苹果文档,里面说的很清楚了。
完成本教程。它会对你有很大帮助
icode博客mapkit演示
具体来说,你需要设置这样的东西..
其中span可以计算为
干杯:)
Its not radius what is required.
You need to use the region parameter from mapView.
Check out apple docs, it is pretty much clear from those.
Go thru this tutorial. It will help you a lot
icode blog mapkit demo
specifically you need to set something like this..
where span can be calculated as
Cheers :)
我可能误解了这个问题,但它不是那么简单吗:
I might be misunderstanding the question, but isn't it as simple as: