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

no multiple selection ! #5

Closed hagile closed 9 years ago

hagile commented 9 years ago

Is there a way to stop multiple selection from albums. Currently user can able to select multiple photos. Its not in requirement for me, so is there a direct way with your library to achieve this? If you didn't implemented such thing then also let me know, in which class and method I will able to stop it? I'll surely look by my self.

Thanks a ton for such a good work !! +1

khanamir commented 9 years ago

In OLPhotoViewController.m change self.collectionView.allowsMultipleSelection = NO; screen shot 2015-05-25 at 10 58 36 am

But instead of changing the pod implementation. It should be set as a property of OLFacebookImagePickerController. @dbotha please help in this regard.

hagile commented 9 years ago

I'm able to make it work like this,

Change this method in OLPhotoViewController.m file.

-(void) collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //[self updateTitleWithSelectedIndexPaths:collectionView.indexPathsForSelectedItems];
    [self onButtonDoneClicked];
}
dbotha commented 9 years ago

@khanamir agree it needs to be fixed in the library itself, sorry I've been incredibly busy as of late. I'll try get round to fixing it soon.

hagile commented 9 years ago

@dbotha, have you ever get time to update it?

kkarayannis commented 9 years ago

This is now possible. Take a look in the last paragraph of the usage section: https://github.com/OceanLabs/FacebookImagePicker-iOS#usage