Commit 38e315eb authored by yuzheng.tz's avatar yuzheng.tz

优化一些细节

parent 5f6b34f5
...@@ -345,6 +345,12 @@ ...@@ -345,6 +345,12 @@
- (void)backButtonClick { - (void)backButtonClick {
if (self.navigationController.childViewControllers.count < 2) { if (self.navigationController.childViewControllers.count < 2) {
[self.navigationController dismissViewControllerAnimated:YES completion:nil]; [self.navigationController dismissViewControllerAnimated:YES completion:nil];
if ([self.navigationController isKindOfClass: [TZImagePickerController class]]) {
TZImagePickerController *nav = (TZImagePickerController *)self.navigationController;
if (nav.imagePickerControllerDidCancelHandle) {
nav.imagePickerControllerDidCancelHandle();
}
}
return; return;
} }
[self.navigationController popViewControllerAnimated:YES]; [self.navigationController popViewControllerAnimated:YES];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment