Brodie
Brodie

Reputation: 3506

Displaying very large images on the iPad

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

Answers (2)

David Dunham
David Dunham

Reputation: 8329

Like they said, all you need is something like

+(Class)layerClass
{
    return [CATiledLayer class];
}

in your view.

Upvotes: 0

RunLoop
RunLoop

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

Related Questions