FacebookImagePicker-iOS icon indicating copy to clipboard operation
FacebookImagePicker-iOS copied to clipboard

Selected not updating picker UI

Open rc1911 opened this issue 8 years ago • 1 comments

I'm writing an app that allows the user to select one Facebook image at a time using the picker. After each selection I want the selected image to reset to nil and the picker UI to update to reflect this. I am able to reset the selected images array, but the UI won't update, it continues to show the previously selected images. Has anyone else experienced this issue? Any solutions?

rc1911 avatar Jun 08 '16 21:06 rc1911

@rc1911, I have the same logic in the app (allowing to pick a single image). So, I simply dismiss the picker on selecting the first image.

- (void)facebookImagePicker:(OLFacebookImagePickerController *)imagePicker didSelectImage:(OLFacebookImage *)facebookImage {
    [self dismissViewControllerAnimated:YES completion:^{
        // process facebookImage
    }];
}

vsiniak avatar Jul 12 '16 13:07 vsiniak