iOS 中的语义缩放
如何在 iOS4 中创建语义缩放类型界面?我所说的语义缩放是指,当用户放大某个对象时,它会显示越来越多的细节,缩小时反之亦然。
任何提示表示赞赏,谢谢!
How would one go about creating a semantic zoom type interface in iOS4? By semantic zoom I mean that as the user zooms in on an object it reveals more and more details, and vice versa when zooming out.
Any tips appreciated, thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为有一个 WWDC 会议视频对此进行了介绍,它使用了 UIScrollView 和平铺。当用户缩放时,图块上会显示更详细的图像。观看会议视频(链接位于开发者中心,您需要一个开发者帐户)。
I think there was a WWDC session video on this and it used a UIScrollView and tiling. When the user zoomed a more detailed image was shown on the tiles. Take a look at the session videos (link is in the developer center and you will need a developer account).
Apple 提供的“PhotoScroller”示例代码具有效果很好的平铺缩放技术。我在多个应用程序中重复使用了它。它依赖于CATiledLayer。下载示例代码,您应该拥有您需要的内容。
The "PhotoScroller" sample code provided by Apple has a tiled zoom technique that works very well. I have reused it across multiple apps. It relies on CATiledLayer. Download the sample code and you should have what you need.