我一直在寻找在 iPhone/iPad 上实现平铺解决方案的方法,类似于谷歌地图。我已经查看了如何将 CATiledLayer 实现到 UIScrollView 内的视图中的示例。然后,当您滚动视图时,图块会请求显示新数据。但是,当您的视图尺寸有限(即:3000x3000)时,这似乎可行。但是,我如何将其用于更大尺寸的平铺解决方案。基本上,我希望能够显示尽可能大的图块所需的数据。我可以以某种方式使用 CATiledLayer 来做到这一点吗?任何方向将不胜感激。
问问题
883 次
1 回答
0
I don't specifically know how to achieve this with CATiledLayer, but if you look at the example code called ScrollViewSuite, more specifically the "Tiling" project within it, you'll find a way of doing something like Google Maps without using CATiledLayer.
Personally I don't like using CATiledLayer - it seems to have a mind of it's own and can't be monitored easily, for example you don't know when it gets around to finishing it's redrawing etc.
于 2010-04-28T05:10:29.593 回答