Skip to content

VigorBoy/UICollectionViewLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UICollectionViewLayout

一个自定义瀑布流框架

绑定代理方法

显示Cell的高度

	- (CGFloat)waterflowLayout:(WaterflowLayout *)waterflowLayout heightForItemAtIndex:(NSUInteger)index itemWidth:(CGFloat)itemWidth

每一行之间的距离 默认显示 10

  - (CGFloat)rowMarginInWaterflowLayout:(WaterflowLayout *)waterflowLayout;

每一列之间的距离 默认显示10

	- (CGFloat)columnMarginInWaterflowLayout:(WaterflowLayout *)waterflowLayout;

显示多少列 默认显示3

  - (CGFloat)columnCountInWaterflowLayout:(WaterflowLayout *)waterflowLayout;

边缘距离 UIEdgeInsets 默认{10, 10, 10, 10}

- (UIEdgeInsets)edgeInsetsInWaterflowLayout:(WaterflowLayout *)waterflowLayout;

About

一个自定义瀑布流框架

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published