I select 5 items in my collection view and i want to delete it. Please help me delete the selected items. I put one button and when i press that button all selected items are delete that i want. My button click code.
- (IBAction)btn_delete:(id)sender {
NSArray *selectedItemsIndexPaths = [self.MyCollectionView indexPathsForSelectedItems];
NSLog(@"Selected images: %@",mySelectedArray);
[self.MyCollectionView deleteItemsAtIndexPaths:selectedItemsIndexPaths];
[self.MyCollectionView reloadData];
}