Skip to content

Commit 38e315e

Browse files
committed
优化一些细节
1 parent 5f6b34f commit 38e315e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ - (void)select:(UIButton *)selectButton {
345345
- (void)backButtonClick {
346346
if (self.navigationController.childViewControllers.count < 2) {
347347
[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+
}
348354
return;
349355
}
350356
[self.navigationController popViewControllerAnimated:YES];

0 commit comments

Comments
 (0)