实现UICollectionView中cell的批量添加、批量删除和位置移动
工程目录结构:
关键代码如下:
cell之间的位置交换:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;
- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;
用以上三个方法实现。
高级iOS开发技术交流群:415239068,欢迎大家加入