源码Voltron,Voltron通过在UICollectionView和UIViewController实现多行多列单元格效果。既可以接收单个单元格手势事件,也可以接受一组单元格的手势事件。
使用方法:
导入头文件:
#import
遵守WMLControllerCollectionViewDataSource协议:
@interface WMLViewController ()
声明WMLCollectionView属性:
@property (nonatomic, weak) IBOutlet WMLCollectionView *collectionView;
创建WMLCollectionViewCell、对象:
WMLCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell"
forIndexPath:indexPath];