iPhone SDK和Multipage tiff

Wal*_*eed 0 iphone-sdk-3.0

我需要访问iphone API来读取多页TIFF图像文件格式,任何人都知道如何:如果不是,我如何在iphone/xcode上构建和使用开源libtiff.

5hr*_*hrp 6

我为此创建了自己的解决方案:NSTiffSplitter.你可以在github上找到它.

NSString *pathToImage = [[NSBundle mainBundle] pathForResource:@"Example" ofType:@"tiff"];
NSTiffSplitter* splitter = [[NSTiffSplitter alloc] initWithPathToImage:pathToImage];
UIImage *page = [[UIImage alloc] initWithData:[splitter dataForImage:page]];
yourImageView.image = page;
[page release];
Run Code Online (Sandbox Code Playgroud)