在iPad上显示非常大的图像 [英] Displaying very large images on the iPad

查看:474
本文介绍了在iPad上显示非常大的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在iPad上显示一些非常大的图像。这些文件是jpgs,大约是6700x2700(地图)。是否可以将整个图像加载到内存中?

I need to display some very large images on the iPad. The files are jpgs and are about 6700x2700 (maps). Is there any way around loading the entire image into memory?

目前我将其加载到滚动视图中以进行缩放/平移。

Currently I load it int a scroll view for zooming/panning.

图像存储在设备本地。

推荐答案

您需要使用CATiledLayer来显示该尺寸的图像。请参阅CATiledLayer类参考和核心动画编程指南。

You need to use CATiledLayer to display images of that size. Refer to the CATiledLayer class reference and Core Animation programming guide.

这篇关于在iPad上显示非常大的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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