NSIndexPath(PSPDFDocumentViewLayout)

Undocumented

  • Creates an index path with a given spread index, suitable for use on all the collection view methods dealing with index paths instead of spread indexes.

    Declaration

    Objective-C

    + (nonnull NSIndexPath *)pspdf_indexPathForSpreadAtIndex:(NSInteger)spreadIndex;

    Swift

    class func pspdf_indexPathForSpread(at spreadIndex: Int) -> IndexPath

    Parameters

    spreadIndex

    The spread index to express as an index path.

    Return Value

    The index path expressing the passed in spread index.

  • The index identifying the spread in a PSPDFDocumentViewLayout.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger pspdf_spreadIndex;

    Swift

    var pspdf_spreadIndex: Int { get }