OceanLabs / FacebookImagePicker-iOS

A Facebook image picker providing a simple UI for a user to pick photos from a users Facebook account. It provides an image picker interface that matches the iOS SDK's UIImagePickerController.
https://www.kite.ly
MIT License
103 stars 56 forks source link

Selected not updating picker UI #31

Open rc1911 opened 8 years ago

rc1911 commented 8 years ago

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?

vsiniak commented 7 years ago

@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
    }];
}