|
@@ -300,6 +300,13 @@
|
|
}
|
|
}
|
|
}else if (CSignatureTopBarText == self.selecIndex) {
|
|
}else if (CSignatureTopBarText == self.selecIndex) {
|
|
UIImage *image = [self captureScreenshotOfTextField:self.textField];
|
|
UIImage *image = [self captureScreenshotOfTextField:self.textField];
|
|
|
|
+ if(self.textField.text.length == 0) {
|
|
|
|
+ UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Info" message:@"Please input Signature" preferredStyle:UIAlertControllerStyleAlert];
|
|
|
|
+ UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleCancel handler:nil];
|
|
|
|
+ [alertController addAction:cancelAction];
|
|
|
|
+ [self presentViewController:alertController animated:YES completion:nil];
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (self.textField.text) {
|
|
if (self.textField.text) {
|
|
if(self.delegate && [self.delegate respondsToSelector:@selector(signatureEditViewController:image:)]) {
|
|
if(self.delegate && [self.delegate respondsToSelector:@selector(signatureEditViewController:image:)]) {
|
|
[self.delegate signatureEditViewController:self image:image];
|
|
[self.delegate signatureEditViewController:self image:image];
|