0

I am using MWPhotoBrowser in my app.

I just need to force to select only one photo on selection mode.

Is there any way or tip we can implement that functionality?

Thanks in advance!!

Eusthace
  • 3,601
  • 7
  • 34
  • 41

1 Answers1

0

Bring the following changes in the implementation of delegate method of MWPhotoBrowser.

- (void)photoBrowser:(MWPhotoBrowser *)photoBrowser photoAtIndex:(NSUInteger)index selectedChanged:(BOOL)selected {
    for (int i=0;i<selectedPhotos.count;i++)
    {
        [selectedPhotos replaceObjectAtIndex:i withObject:[NSNumber numberWithBool:NO]];
    }
    [selectedPhotos replaceObjectAtIndex:index withObject:[NSNumber numberWithBool:selected]];
}
Chanchal Raj
  • 4,176
  • 4
  • 39
  • 46