|
@@ -157,7 +157,8 @@
|
|
self.menuPoint = point;
|
|
self.menuPoint = point;
|
|
AAPLCustomPresentationController *presentationController NS_VALID_UNTIL_END_OF_SCOPE;
|
|
AAPLCustomPresentationController *presentationController NS_VALID_UNTIL_END_OF_SCOPE;
|
|
CPDFStampViewController *stampVC = [[CPDFStampViewController alloc] init];
|
|
CPDFStampViewController *stampVC = [[CPDFStampViewController alloc] init];
|
|
- presentationController = [[AAPLCustomPresentationController alloc] initWithPresentedViewController:self.signatureVC presentingViewController:self.parentVC];
|
|
|
|
|
|
+ presentationController = [[AAPLCustomPresentationController alloc] initWithPresentedViewController:stampVC presentingViewController:self.parentVC];
|
|
|
|
+ presentationController.tapDelegate = self;
|
|
stampVC.delegate = self;
|
|
stampVC.delegate = self;
|
|
stampVC.transitioningDelegate = presentationController;
|
|
stampVC.transitioningDelegate = presentationController;
|
|
[self.parentVC presentViewController:stampVC animated:YES completion:nil];
|
|
[self.parentVC presentViewController:stampVC animated:YES completion:nil];
|
|
@@ -628,7 +629,12 @@
|
|
|
|
|
|
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
|
|
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
|
|
[picker dismissViewControllerAnimated:YES completion:nil];
|
|
[picker dismissViewControllerAnimated:YES completion:nil];
|
|
- UIImage *image = [info objectForKey:UIImagePickerControllerEditedImage];
|
|
|
|
|
|
+ UIImage *image;
|
|
|
|
+ if ([info objectForKey:UIImagePickerControllerEditedImage]) {
|
|
|
|
+ image = [info objectForKey:UIImagePickerControllerEditedImage];
|
|
|
|
+ } else if ([info objectForKey:UIImagePickerControllerOriginalImage]) {
|
|
|
|
+ image = [info objectForKey:UIImagePickerControllerOriginalImage];
|
|
|
|
+ }
|
|
|
|
|
|
UIImageOrientation imageOrientation = image.imageOrientation;
|
|
UIImageOrientation imageOrientation = image.imageOrientation;
|
|
if (imageOrientation!=UIImageOrientationUp) {
|
|
if (imageOrientation!=UIImageOrientationUp) {
|