PTStampManager
@interface PTStampManager : NSObject
Creates signatures and manages saved ones.
-
Used to determine if there is a saved signature.
Declaration
Objective-C
- (BOOL)HasDefaultSignature;Swift
func hasDefaultSignature() -> BoolReturn Value
YESif there is a saved signature -
Deletes the saved signature
Declaration
Objective-C
- (void)DeleteDefaultSignatureFile;Swift
func deleteDefaultSignatureFile() -
Creates a new saved signature.
Declaration
Objective-C
- (nonnull PTPDFDoc *)CreateSignature:(nonnull NSMutableArray *)points withStrokeColor:(nonnull UIColor *)strokeColor withStrokeThickness:(CGFloat)thickness withinRect:(CGRect)rect makeDefault:(BOOL)asDefault;Swift
func createSignature(_ points: NSMutableArray, withStroke strokeColor: UIColor, withStrokeThickness thickness: CGFloat, within rect: CGRect, makeDefault asDefault: Bool) -> PTPDFDocParameters
pointsA set of FreeHand points.
strokeColorThe color of the freehand stroke.
thicknessThe thickness of the freehand stroke.
rectThe bounding rect of the points.
Return Value
asDefault
YESif the signature shold be saved as the default signature.
PTStampManager Class Reference