卡片布局
查看次数:4246
下载次数:1113
上传时间:2017-03-03
大小:38 B
## 卡片布局,支持水平、垂直滚动。Swift版本请[点击这里](https://github.com/Pr-Chen/CardLayout-Swift)




## 用法简单
```objective-c
CardLayOut *layout = [CardLayOut new];
self.collectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:layout];
```
## 可以设置的属性
```objective-c
//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;
```
收藏
https://gitee.com/zfj1128/ZFJObsLib_dmg