Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functionality ShouldPick #14

Open
szlangini opened this issue Dec 14, 2015 · 2 comments
Open

Functionality ShouldPick #14

szlangini opened this issue Dec 14, 2015 · 2 comments

Comments

@szlangini
Copy link

Hey OceanLabs,

great work, really much appreciated this.
I am using this in Swift2.1 though.

Can you quickly explain to me how to allow the user to just pick 1 Image each?
I'll get an error using the Should function.

@szlangini
Copy link
Author

found an answer myself: func facebookImagePicker(imagePicker: OLFacebookImagePickerController!, shouldSelectImage image: OLFacebookImage!) -> Bool { if imagePicker.selected == nil { return true; } else if imagePicker.selected.count == 0 { return true; } else { return false; } }

@vsiniak
Copy link

vsiniak commented Jul 12, 2016

@szlangini, you can also dismiss the picker after selecting the first image.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants