如何在iPhone上滚动和放大/缩小大图像? [英] How to scroll and zoom in/out large images on iPhone?

查看:222
本文介绍了如何在iPhone上滚动和放大/缩小大图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大图像,大小约为30000(w)x 6000(h)像素。你可能会认为它就像一张大地图。我想我需要把它裁剪成更小的瓷砖。问题:

I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions:


  • 使用什么 ViewControllers

  • 链接)什么是平铺策略? (我把它放在另一个问题上,因为它不是iPhone专用的)

  • what are the right ViewControllers to use?
  • (link) what is the tile strategy? (I put this in another question, as it's not iPhone specific)

要求:


  • 整个图像(虽然被裁剪)可以通过滑动上/下/左/右滚动

  • 放大(最多像素到像素)通过2个手指操作输出(按屏幕调整高度)

  • 延迟加载瓷砖的内存效率

奖金要求:


  • 自动滚动,从左到右缓慢平稳地说

谢谢!

推荐答案

查看第3部分Apple的 ScrollViewSuite 示例代码示例如何这样做。

Check out part 3 of Apple's ScrollViewSuite sample code for an example of how to do this.

这篇关于如何在iPhone上滚动和放大/缩小大图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆