Unverified Commit 9ea11c97 authored by 少言's avatar 少言 Committed by GitHub

Merge pull request #29 from a6051529/master

fix dismiss not completion
parents ccd9496f 1cc21f9c
......@@ -227,7 +227,7 @@ RCT_EXPORT_METHOD(removeAllPhoto) {
}
- (void)imagePickerController:(UIImagePickerController*)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[picker dismissViewControllerAnimated:YES completion:nil];
[picker dismissViewControllerAnimated:YES completion:^{
NSString *type = [info objectForKey:UIImagePickerControllerMediaType];
if ([type isEqualToString:@"public.image"]) {
......@@ -276,6 +276,7 @@ RCT_EXPORT_METHOD(removeAllPhoto) {
}
}];
}
}];
}
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker {
......
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