您的位置:首页 > 其它

神奇的 collectionview

2016-02-25 13:50 162 查看
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];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: