Reputation: 3506
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.
The images are stored locally on the device.
Upvotes: 1
Views: 2796
Reputation: 8329
Like they said, all you need is something like
+(Class)layerClass
{
return [CATiledLayer class];
}
in your view.
Upvotes: 0
Reputation: 20376
You need to use CATiledLayer to display images of that size. Refer to the CATiledLayer class reference and Core Animation programming guide.
Upvotes: 2