开发者

Semantic Zoom in iOS

开发者 https://www.devze.com 2023-02-21 22:47 出处:网络
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 z开发者_如何

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 z开发者_如何学编程ooming out.

Any tips appreciated, thanks!


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).


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消