开发者

UIImagePickerController continue to select image

开发者 https://www.devze.com 2023-01-15 10:50 出处:网络
I know UIImagePickerController can only select one image from library each time. When user select one image, UIPickerController will disappear. But I noticed the app \"Good Reader\", when it launchs U

I know UIImagePickerController can only select one image from library each time. When user select one image, UIPickerController will disappear. But I noticed the app "Good Reader", when it launchs U开发者_JAVA技巧IImagePickerController, after user choose one image, it prompt a small window says "processing the image", but UIImagePickerController does not dissappear which will let the user continue to choose other images.

I do not know how this can be realized?

Welcome any comment.

Thanks interdev


I would think that you just dont call [self dismissModalViewControllerAnimated:YES]; until you are doing processing.

- (void)imagePickerController:(UIImagePickerController *)picker
                didFinishPickingImage:(UIImage *)image 
                editingInfo:(NSDictionary *)editingInfo
{
    // do your magic here, and display processing UI

    [self dismissModalViewControllerAnimated:YES];
    [picker release];
}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号