Latest 1.0.0
Homepage https://github.com/Sharrp/NSTiffSplitter
License MIT
Platforms ios 8.0
Authors ,

How to use it

NSTiffSplitter is an Objective-C class which allow you to show multipage TIFF files on iPad / iPhone / iPod Touch. Use it in two steps:

  1. Create NSTiffSplitter instance:
    - (id) initWithData:(NSData *)imgData;

    or

    - (id) initWithImageUrl:(NSURL *)imgUrl usingMapping:(BOOL)usingMapping;

    Second method always use mapping.

  2. Get any page of tiff file with next method:
    - (NSData *) dataForImage:(NSUInteger)imageIndex;

    It returns monopage tiff file for every page of multipage tiff file.

You can get count of images in file with countOfImages property.

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate NSTiffSplitter into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
    pod 'NSTiffSplitter', '~> 1.0'
end

Then, run the following command:

$ pod install

Latest podspec

{
    "name": "NSTiffSplitter",
    "version": "1.0.0",
    "summary": "Objective-C dynamic framework for viewing multipage tiff files on iOS devices.",
    "homepage": "https://github.com/Sharrp/NSTiffSplitter",
    "license": "MIT",
    "authors": {
        "Anton Sharrp Furin": "",
        "Tomas Sliz": ""
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/Sharrp/NSTiffSplitter.git",
        "tag": "1.0.0"
    },
    "source_files": "Source/NSTiffSplitter/*.{h,m}"
}

Pin It on Pinterest

Share This