-
Notifications
You must be signed in to change notification settings - Fork 0
/
JBSignatureController.h
executable file
·44 lines (28 loc) · 1.1 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
//
// 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
// Allows you to set th background images in different states
@property(nonatomic,strong) UIImage *portraitBackgroundImage, *landscapeBackgroundImage;
// 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