- Add (void) dismissViewControllerAnimated:(BOOL)animated completion:(void (^ _Nullable)(void))completion
This commit is contained in:
1 parent
7b2184a5e0
commit
60b14b37a7
21 files changed
+10136
-2676
No files matched your search
@@ -478,7 +478,8 @@
|
||||
}
|
||||
[_imagePickerView setNeedsUpdateConstraints];
|
||||
[_imagePickerView updateConstraintsIfNeeded];
|
||||
|
||||
|
||||
_isVisible = NO;
|
||||
if (animated) {
|
||||
|
||||
[UIView animateWithDuration:_animationTime
|
||||
@@ -519,6 +520,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void) dismissViewControllerAnimated:(BOOL)animated completion:(void (^ _Nullable)(void))completion {
|
||||
[self dismissAnimated:animated];
|
||||
if (completion) {
|
||||
completion();
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user