Skip to content

Commit

Permalink
优化一些细节
Browse files Browse the repository at this point in the history
  • Loading branch information
banchichen committed Jul 4, 2018
1 parent 5f6b34f commit 38e315e
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,12 @@ - (void)select:(UIButton *)selectButton {
- (void)backButtonClick {
if (self.navigationController.childViewControllers.count < 2) {
[self.navigationController dismissViewControllerAnimated:YES completion:nil];
if ([self.navigationController isKindOfClass: [TZImagePickerController class]]) {
TZImagePickerController *nav = (TZImagePickerController *)self.navigationController;
if (nav.imagePickerControllerDidCancelHandle) {
nav.imagePickerControllerDidCancelHandle();
}
}
return;
}
[self.navigationController popViewControllerAnimated:YES];
Expand Down

0 comments on commit 38e315e

Please sign in to comment.