[collectionView performBatchUpdates:^{
[dataArrayremoveObjectAtIndex:indexPath.row];
[collectionViewdeleteItemsAtIndexPaths:@[indexPath]];
}completion:^(BOOLfinished){
[collectionViewreloadData];
}];
[collectionView performBatchUpdates:^{
[dataArrayremoveObjectAtIndex:indexPath.row];
[collectionViewdeleteItemsAtIndexPaths:@[indexPath]];
}completion:^(BOOLfinished){
[collectionViewreloadData];
}];
本文标题:集合视图删除单元格
本文链接:https://www.haomeiwen.com/subject/nzczdqtx.html
网友评论