Skip to content

wangqinggong/MKWaterLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MKWaterLayout

##如何使用

  • 将MKWaterFlowLayout.h和MKWaterFlowLayout.m拖入到您的项目

  • 在您的项目中导入主头文件 #import "MKWaterFlowLayout.h"*

  • 切换UICollectionView的布局

’‘’objc MKWaterFlowLayout * layout = [[MKWaterFlowLayout alloc] init];

self.collectionView.collectionViewLayout = layout; '''

  • 遵守协议设置代理
 layout.delegate = self;
  • 必须实现的代理方法(返回真是图片的宽高比)
- (CGFloat)waterFlowLayout:(MKWaterFlowLayout *)waterFlowLayout widthHeightForRowAtIndexPath:(NSIndexPath *)indexPath
{}

About

这个框架可以实现常见的瀑布流效果

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors