filestack / FSPicker

DEPRECATED
MIT License
10 stars 15 forks source link

Crash when selecting web images #8

Closed cerupcat closed 8 years ago

cerupcat commented 8 years ago

On line 349 of FSSearchViewController.m crashes when selecting multiple images for upload.

2016-05-16 16:47:19.210 Employers[2968:828801] *** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <__NSArrayM: 0x146d365f0> was mutated while being enumerated.'
cerupcat commented 8 years ago

I'm not sure this is even necessary. Removing this fixes the crash.

    for (NSIndexPath *indexPath in self.selectedIndexPaths) {
        [self collectionView:self.collectionView didDeselectItemAtIndexPath:indexPath];
    }
pJes2 commented 8 years ago

please try version 0.1.4-beta.

This 3 lines are necessary to clear the selection and keep the "upload behaviour" consistent across the different controllers