1. 删除item
MoreCollectionViewCell * cell = (MoreCollectionViewCell *)button.superview.superview;
NSIndexPath * index = [self.myCollectionView indexPathForCell:cell];
[dataArray removeObjectAtIndex:index.row];
NSIndexPath *indexPath = [NSIndexPath indexPathForItem:index.row inSection:0];
NSArray *itemPaths = @[indexPath];
[self.myCollectionView deleteItemsAtIndexPaths:itemPaths];
2132

被折叠的 条评论
为什么被折叠?



