PSPDFSegmentImageProviding

Objective-C

@protocol PSPDFSegmentImageProviding <NSObject>

Swift

protocol SegmentImageProviding : NSObjectProtocol

Implement in your UIViewController subclass provide navigation image for PSPDFDocumentInfoController container.

  • An image object to use as the content of the segment.

    If this returns nil or this protocol is not implemented by a view controller then the view controller’s title will be displayed instead.

    Note

    Set accessibilityLabel property on image to ensure that the segments are properly accessible.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) UIImage *segmentImage;

    Swift

    var segmentImage: UIImage? { get }