Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 976 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 976 Bytes

卡片布局,支持水平、垂直滚动。Swift版本请点击这里

用法简单

CardLayOut *layout = [CardLayOut new];
self.collectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:layout];

可以设置的属性

//cell间距
@property (nonatomic, assign) CGFloat spacing;

//cell的尺寸
@property (nonatomic, assign) CGSize itemSize;

//缩放率
@property (nonatomic, assign) CGFloat scale;

//边距
@property (nonatomic, assign) UIEdgeInsets edgeInset;

//滚动方向
@property (nonatomic, assign) UICollectionViewScrollDirection scrollDirection;