( ), allowsMultipleSelection . . , , .
, ( ), ( ), - ( ). ( ) , , .
, , , , , UX. , , .
( ).
, , , , .
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
NSArray *indexPaths = collectionView.indexPathsForSelectedItems;
[indexPaths removeObject:indexPath];
for (NSIndexPath *otherIndexPath in indexPaths) {
[collectionView deselectItemAtIndexPath:otherIndexPath animated:YES];
}
}
user4151918