|
@@ -15,6 +15,16 @@
|
|
|
|
|
|
|
|
@implementation SignatureViewController
|
|
@implementation SignatureViewController
|
|
|
|
|
|
|
|
|
|
++ (instancetype)ra_signatureViewControllerWithCompletion:(void (^)(UIImage *))blk {
|
|
|
|
|
+
|
|
|
|
|
+ SignatureViewController * vc =[ [UIStoryboard storyboardWithName:@"signature"
|
|
|
|
|
+ bundle:[NSBundle mainBundle]]
|
|
|
|
|
+ instantiateViewControllerWithIdentifier:@"SignatureViewController"];
|
|
|
|
|
+
|
|
|
|
|
+ vc.onReturnImg = blk;
|
|
|
|
|
+ return vc;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
|
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
|
|
|
{
|
|
{
|
|
|
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
|
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|