We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f6b34f commit 38e315eCopy full SHA for 38e315e
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
@@ -345,6 +345,12 @@ - (void)select:(UIButton *)selectButton {
345
- (void)backButtonClick {
346
if (self.navigationController.childViewControllers.count < 2) {
347
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
348
+ if ([self.navigationController isKindOfClass: [TZImagePickerController class]]) {
349
+ TZImagePickerController *nav = (TZImagePickerController *)self.navigationController;
350
+ if (nav.imagePickerControllerDidCancelHandle) {
351
+ nav.imagePickerControllerDidCancelHandle();
352
+ }
353
354
return;
355
}
356
[self.navigationController popViewControllerAnimated:YES];
0 commit comments