-
Notifications
You must be signed in to change notification settings - Fork 0
/
JBSignatureController.h
52 lines (32 loc) · 1.34 KB
/
JBSignatureController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//
// JBSignatureController.h
// JBSignatureController
//
// Created by Jesse Bunch on 12/10/11.
// Copyright (c) 2011 Jesse Bunch. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol JBSignatureControllerDelegate;
@interface JBSignatureController : UIViewController <UITextFieldDelegate>
// Allows you to set th background images in different states
@property(nonatomic,strong) UIImage *portraitBackgroundImage, *landscapeBackgroundImage;
// Buttons for confirm and cancel
@property(nonatomic,strong) UIButton *confirmButton, *cancelButton;
// Fields for AI Signer Info
@property(nonatomic,strong) UITextField *firstNameField, *lastNameField, *emailAddressField;
// Delegate
@property(nonatomic,weak) id<JBSignatureControllerDelegate> delegate;
// Clear the signature
-(void)clearSignature;
@end
// Delegate Protocol
@protocol JBSignatureControllerDelegate <NSObject>
@required
// Called when the user clicks the confirm button
-(void)signatureConfirmed:(UIImage *)signatureImage signatureController:(JBSignatureController *)sender;
@optional
// Called when the user clicks the cancel button
-(void)signatureCancelled:(JBSignatureController *)sender;
// Called when the user clears their signature or when clearSignature is called.
-(void)signatureCleared:(UIImage *)clearedSignatureImage signatureController:(JBSignatureController *)sender;
@end