PSPDFTextStampViewController
Objective-C
@interface PSPDFTextStampViewController
: PSPDFStaticTableViewController <PSPDFOverridable>
Swift
class TextStampViewController : PDFStaticTableViewController, Overridable
A view controller that lets users create or edit a custom text annotation stamp.
-
Initialize controller, optionally with a preexisting stamp, otherwise a new one will be created.
Declaration
Objective-C
- (nonnull instancetype)initWithStampAnnotation: (nullable PSPDFStampAnnotation *)stampAnnotation;
Swift
init(stampAnnotation: PSPDFStampAnnotation?)
-
Text Stamp controller delegate.
Declaration
Objective-C
@property (nonatomic, weak) id<PSPDFTextStampViewControllerDelegate> _Nullable delegate;
Swift
@IBOutlet weak var delegate: TextStampViewControllerDelegate? { get set }
-
The custom stamp annotation. If this controller isn’t initialized with a stamp, a new one will be created. Will be modified according to the user input.
Declaration
Objective-C
@property (nonatomic, readonly) PSPDFStampAnnotation *_Nonnull stampAnnotation;
Swift
var stampAnnotation: PSPDFStampAnnotation { get }
-
The default stamp text if stamp is created. Defaults to nil.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *defaultStampText;
Swift
var defaultStampText: String? { get set }