Skip to content

常见自定义CollectionView布局,完善当中...

Notifications You must be signed in to change notification settings

Pr-Chen/AwsomeLayout-OC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

卡片布局,支持水平、垂直滚动。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;

About

常见自定义CollectionView布局,完善当中...

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published