123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729 |
- //
- // WSLWaterFlowLayout.m
- // collectionView
- //
- // Created by 王双龙 on 2017/10/16.
- // Copyright © 2017年 https://www.jianshu.com/u/e15d1f644bea All rights reserved.
- //
- #import "WSLWaterFlowLayout.h"
- /** 默认的列数*/
- static const NSInteger WSLDefaultColumeCount = 2;
- /** 默认的行数*/
- static const NSInteger WSLDefaultRowCount = 5;
- /** 每一列之间的间距*/
- static const NSInteger WSLDefaultColumeMargin = 10;
- /** 每一行之间的间距*/
- static const CGFloat WSLDefaultRowMargin = 10;
- /** 边缘之间的间距*/
- static const UIEdgeInsets WSLDefaultEdgeInset = {10, 10, 10, 10};
- ///** 每一行之间的间距*/
- //static const CGSize WSLDefaultHeaderSize = CGSizeMake(0, 66);
- ///** 每一行之间的间距*/
- //static const CGSize WSLDefaultFooterSize = CGSizeMake(0, 66);
- @interface WSLWaterFlowLayout ()
- /** 存放所有cell的布局属性*/
- @property (strong, nonatomic) NSMutableArray *attrsArray;
- /** 存放每一列的最大y值*/
- @property (nonatomic, strong) NSMutableArray *columnHeights;
- /** 存放每一行的最大x值*/
- @property (nonatomic, strong) NSMutableArray *rowWidths;
- /** 内容的高度*/
- @property (nonatomic, assign) CGFloat maxColumnHeight;
- /** 内容的宽度*/
- @property (nonatomic, assign) CGFloat maxRowWidth;
- /** 列数*/
- -(NSInteger)columnCount;
- /** 行数*/
- -(NSInteger)rowCount;
- /** 每一行之间的间距*/
- -(CGFloat)rowMargin;
- /** 每一列之间的间距*/
- -(CGFloat)columnMargin;
- /** 边缘之间的间距*/
- -(UIEdgeInsets)edgeInsets;
- @end
- @implementation WSLWaterFlowLayout
- #pragma mark item属性配置
- -(CGFloat)columnMargin {
- if ([self.delegate respondsToSelector:@selector(columnMarginInWaterFlowLayout:)]) {
- return [self.delegate columnMarginInWaterFlowLayout:self];
- } else {
- return WSLDefaultColumeMargin;
- }
- }
- -(CGFloat)rowMargin {
- if ([self.delegate respondsToSelector:@selector(rowMarginInWaterFlowLayout:)]) {
- return [self.delegate rowMarginInWaterFlowLayout:self];
- } else {
- return WSLDefaultRowMargin;
- }
- }
- -(NSInteger)columnCount {
- if ([self.delegate respondsToSelector:@selector(columnCountInWaterFlowLayout:)]) {
- return [self.delegate columnCountInWaterFlowLayout:self];
- } else {
- return WSLDefaultColumeCount;
- }
- }
- -(NSInteger)rowCount{
-
- if ([self.delegate respondsToSelector:@selector(rowCountInWaterFlowLayout:)]) {
- return [self.delegate rowCountInWaterFlowLayout:self];
- } else {
- return WSLDefaultRowCount;
- }
- }
- -(UIEdgeInsets)edgeInsets {
- if ([self.delegate respondsToSelector:@selector(edgeInsetInWaterFlowLayout:)]) {
- return [self.delegate edgeInsetInWaterFlowLayout:self];
- } else {
- return WSLDefaultEdgeInset;
- }
- }
- #pragma mark - 懒加载
- - (NSMutableArray *)columnHeights {
- if (!_columnHeights) {
- _columnHeights = [NSMutableArray array];
- }
- return _columnHeights;
- }
- - (NSMutableArray *)rowWidths {
- if (!_rowWidths) {
- _rowWidths = [NSMutableArray array];
- }
- return _rowWidths;
- }
- -(NSMutableArray *)attrsArray {
- if (_attrsArray == nil) {
- _attrsArray = [NSMutableArray array];
- }
- return _attrsArray;
- }
- #pragma mark - 重写系统方法
- /** 初始化 生成每个视图的布局信息*/
- -(void)prepareLayout {
-
- [super prepareLayout];
-
- if (self.flowLayoutStyle == WSLVerticalWaterFlow) {
-
- //清除以前计算的所有高度
- self.maxColumnHeight = 0;
- [self.columnHeights removeAllObjects];
- for (NSInteger i = 0; i < self.columnCount; i++) {
- [self.columnHeights addObject:@(self.edgeInsets.top)];
- }
-
- }else if (self.flowLayoutStyle == WSLHorizontalWaterFlow){
-
- //清除以前计算的所有宽度
- self.maxRowWidth = 0;
- [self.rowWidths removeAllObjects];
- for (NSInteger i = 0; i < self.rowCount; i++) {
- [self.rowWidths addObject:@(self.edgeInsets.left)];
- }
-
- }else if (self.flowLayoutStyle == WSLVHWaterFlow || self.flowLayoutStyle == WSLLineWaterFlow){
-
- //记录最后一个的内容的横坐标和纵坐标
- self.maxColumnHeight = 0;
- [self.columnHeights removeAllObjects];
- [self.columnHeights addObject:@(self.edgeInsets.top)];
-
- self.maxRowWidth = 0;
- [self.rowWidths removeAllObjects];
- [self.rowWidths addObject:@(self.edgeInsets.left)];
-
- }
-
- //清除之前数组
- [self.attrsArray removeAllObjects];
-
- //开始创建每一组cell的布局属性
- NSInteger sectionCount = [self.collectionView numberOfSections];
- for(NSInteger section = 0; section < sectionCount; section++){
-
- //获取每一组头视图header的UICollectionViewLayoutAttributes
- if([self.delegate respondsToSelector:@selector(waterFlowLayout:sizeForHeaderViewInSection:)]){
- UICollectionViewLayoutAttributes *headerAttrs = [self layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionHeader atIndexPath:[NSIndexPath indexPathForItem:0 inSection:section]];
- [self.attrsArray addObject:headerAttrs];
- }
-
-
- //开始创建组内的每一个cell的布局属性
- NSInteger rowCount = [self.collectionView numberOfItemsInSection:section];
- for (NSInteger row = 0; row < rowCount; row++) {
- //创建位置
- NSIndexPath *indexPath = [NSIndexPath indexPathForItem:row inSection:section];
- //获取indexPath位置cell对应的布局属性
- UICollectionViewLayoutAttributes *attrs = [self layoutAttributesForItemAtIndexPath:indexPath];
- [self.attrsArray addObject:attrs];
- }
-
-
- //获取每一组脚视图footer的UICollectionViewLayoutAttributes
- if([self.delegate respondsToSelector:@selector(waterFlowLayout:sizeForFooterViewInSection:)]){
- UICollectionViewLayoutAttributes *footerAttrs = [self layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionFooter atIndexPath:[NSIndexPath indexPathForItem:0 inSection:section]];
- [self.attrsArray addObject:footerAttrs];
- }
-
- }
- }
- /** 决定一段区域所有cell和头尾视图的布局属性*/
- -(NSArray<UICollectionViewLayoutAttributes *> *)layoutAttributesForElementsInRect:(CGRect)rect {
- return self.attrsArray;
- }
- /** 返回indexPath位置cell对应的布局属性*/
- -(UICollectionViewLayoutAttributes *)layoutAttributesForItemAtIndexPath:(NSIndexPath *)indexPath {
- //设置布局属性
- UICollectionViewLayoutAttributes *attrs = [UICollectionViewLayoutAttributes layoutAttributesForCellWithIndexPath:indexPath];
-
- if (self.flowLayoutStyle == WSLVerticalWaterFlow) {
-
- attrs.frame = [self itemFrameOfVerticalWaterFlow:indexPath];
-
- }else if (self.flowLayoutStyle == WSLHorizontalWaterFlow){
-
- attrs.frame = [self itemFrameOfHorizontalWaterFlow:indexPath];
-
- }else if(self.flowLayoutStyle == WSLVHWaterFlow){
-
- attrs.frame = [self itemFrameOfVHWaterFlow:indexPath];
-
- }else if(self.flowLayoutStyle == WSLLineWaterFlow){
-
- attrs.frame = [self itemFrameOfLineWaterFlow:indexPath];
-
- // 计算中心点距离
- CGFloat delta = fabs((attrs.center.x - self.collectionView.contentOffset.x) - self.collectionView.frame.size.width * 0.5);
-
- //计算比例
- CGFloat scale = 1 - delta / (self.collectionView.frame.size.width * 0.5) * 0.25;
-
- attrs.transform = CGAffineTransformMakeScale(scale, scale);
-
- }
-
- return attrs;
- }
- /** 返回indexPath位置头和脚视图对应的布局属性*/
- - (UICollectionViewLayoutAttributes *)layoutAttributesForSupplementaryViewOfKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath{
-
- UICollectionViewLayoutAttributes *attri;
-
- if ([UICollectionElementKindSectionHeader isEqualToString:elementKind]) {
-
- //头视图
- attri = [UICollectionViewLayoutAttributes layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionHeader withIndexPath:indexPath];
-
- attri.frame = [self headerViewFrameOfVerticalWaterFlow:indexPath];
-
- }else {
-
- //脚视图
- attri = [UICollectionViewLayoutAttributes layoutAttributesForSupplementaryViewOfKind:UICollectionElementKindSectionFooter withIndexPath:indexPath];
-
- attri.frame = [self footerViewFrameOfVerticalWaterFlow:indexPath];
-
- }
-
- return attri;
-
- }
- /** 返回值决定了collectionView停止滚动时的偏移量 手指松开后执行
- * proposedContentOffset:原本情况下,collectionView停止滚动时最终的偏移量
- * velocity 滚动速率,通过这个参数可以了解滚动的方向
- */
- /*
- - (CGPoint)targetContentOffsetForProposedContentOffset:(CGPoint)proposedContentOffset withScrollingVelocity:(CGPoint)velocity
- {
- if (self.flowLayoutStyle == WSLLineWaterFlow) {
- // 拖动比较快 最终偏移量 不等于 手指离开时偏移量
- CGFloat collectionW = self.collectionView.frame.size.width;
-
- // 最终偏移量
- CGPoint targetP = [super targetContentOffsetForProposedContentOffset:proposedContentOffset withScrollingVelocity:velocity];
-
- // 0.获取最终显示的区域
- CGRect targetRect = CGRectMake(targetP.x, 0, collectionW, MAXFLOAT);
-
- // 1.获取最终显示的cell
- NSArray *attrs = [super layoutAttributesForElementsInRect:targetRect];
-
- // 获取最小间距
- CGFloat minDelta = MAXFLOAT;
- for (UICollectionViewLayoutAttributes *attr in attrs) {
- // 获取距离中心点距离:注意:应该用最终的x
- CGFloat delta = (attr.center.x - targetP.x) - self.collectionView.bounds.size.width * 0.5;
-
- if (fabs(delta) < fabs(minDelta)) {
- minDelta = delta;
- }
- }
-
- // 移动间距
- targetP.x += minDelta;
-
- if (targetP.x < 0) {
- targetP.x = 0;
- }
-
- return targetP;
-
- }
- return proposedContentOffset;
-
- }
- // Invalidate:刷新
- // 在滚动的时候是否允许刷新布局
- - (BOOL)shouldInvalidateLayoutForBoundsChange:(CGRect)newBounds{
-
- if (self.flowLayoutStyle == WSLLineWaterFlow) {
- return YES;
- }
-
- return NO;
- }
- */
- //返回内容高度
- -(CGSize)collectionViewContentSize {
-
- if (self.flowLayoutStyle == WSLVerticalWaterFlow) {
-
- return CGSizeMake(0, self.maxColumnHeight + self.edgeInsets.bottom);
-
- }else if (self.flowLayoutStyle == WSLHorizontalWaterFlow){
-
- return CGSizeMake(self.maxRowWidth + self.edgeInsets.right, 0);
-
- }else if(self.flowLayoutStyle == WSLVHWaterFlow){
-
- return CGSizeMake(0 , self.maxColumnHeight + self.edgeInsets.bottom);
- }else if(self.flowLayoutStyle == WSLLineWaterFlow){
-
- return CGSizeMake(self.maxRowWidth + self.edgeInsets.right , 0);;
- }
-
- return CGSizeMake(0, 0);
-
- }
- #pragma mark - Help Methods
- //竖向瀑布流 item等宽不等高
- - (CGRect)itemFrameOfVerticalWaterFlow:(NSIndexPath *)indexPath{
-
- //collectionView的宽度
- CGFloat collectionW = self.collectionView.frame.size.width;
- //设置布局属性item的frame
- CGFloat w = (collectionW - self.edgeInsets.left - self.edgeInsets.right - (self.columnCount - 1) * self.columnMargin) / self.columnCount;
- CGFloat h = [self.delegate waterFlowLayout:self heightForItemAtIndexPath:indexPath itemWidth:w];
-
- //找出高度最短的那一列
- NSInteger destColumn = 0;
- CGFloat minColumnHeight = [self.columnHeights[0] doubleValue];
- for (NSInteger i = 1; i < self.columnCount; i++) {
- //取出第i列
- CGFloat columnHeight = [self.columnHeights[i] doubleValue];
- if (minColumnHeight > columnHeight) {
- minColumnHeight = columnHeight;
- destColumn = i;
- }
- }
-
- CGFloat x = self.edgeInsets.left + destColumn * (w + self.columnMargin);
- CGFloat y = minColumnHeight;
- if (y != self.edgeInsets.top) {
- y += self.rowMargin;
- }
-
- //更新最短那列的高度
- self.columnHeights[destColumn] = @(CGRectGetMaxY(CGRectMake(x, y, w, h)));
- //记录内容的高度
- CGFloat columnHeight = [self.columnHeights[destColumn] doubleValue];
- if (self.maxColumnHeight < columnHeight) {
- self.maxColumnHeight = columnHeight;
- }
-
- return CGRectMake(x, y, w, h);
- }
- //竖向瀑布流 item等高不等宽
- - (CGRect)itemFrameOfVHWaterFlow:(NSIndexPath *)indexPath{
-
- //collectionView的宽度
- CGFloat collectionW = self.collectionView.frame.size.width;
-
- CGSize headViewSize = CGSizeMake(0, 0);
- if([self.delegate respondsToSelector:@selector(waterFlowLayout:sizeForHeaderViewInSection:)]){
- headViewSize = [self.delegate waterFlowLayout:self sizeForHeaderViewInSection:indexPath.section];
- }
-
- CGFloat w = [self.delegate waterFlowLayout:self sizeForItemAtIndexPath:indexPath].width;
- CGFloat h = [self.delegate waterFlowLayout:self sizeForItemAtIndexPath:indexPath].height;
-
- CGFloat x;
- CGFloat y;
-
- //记录最后一行的内容的横坐标和纵坐标
- if (collectionW - [[self.rowWidths firstObject] floatValue] > w + self.edgeInsets.right) {
-
- x = [[self.rowWidths firstObject] floatValue] == self.edgeInsets.left ? self.edgeInsets.left : [[self.rowWidths firstObject] floatValue] + self.columnMargin;
- if ([[self.columnHeights firstObject] floatValue] == self.edgeInsets.top) {
- y = self.edgeInsets.top;
- }else if ([[self.columnHeights firstObject] floatValue] == self.edgeInsets.top + headViewSize.height) {
- y = self.edgeInsets.top + headViewSize.height + self.rowMargin;
- }else{
- y = [[self.columnHeights firstObject] floatValue] - h;
- }
- [self.rowWidths replaceObjectAtIndex:0 withObject:@(x + w )];
-
- if ([[self.columnHeights firstObject] floatValue] == self.edgeInsets.top || [[self.columnHeights firstObject] floatValue] == self.edgeInsets.top + headViewSize.height) {
- [self.columnHeights replaceObjectAtIndex:0 withObject:@(y + h)];
- }
-
- }else if(collectionW - [[self.rowWidths firstObject] floatValue] == w + self.edgeInsets.right){
- //换行
- x = self.edgeInsets.left;
- y = [[self.columnHeights firstObject] floatValue] + self.rowMargin;
- [self.rowWidths replaceObjectAtIndex:0 withObject:@(x + w)];
- [self.columnHeights replaceObjectAtIndex:0 withObject:@(y + h)];
-
- }else{
- //换行
- x = self.edgeInsets.left;
- y = [[self.columnHeights firstObject] floatValue] + self.rowMargin;
- [self.rowWidths replaceObjectAtIndex:0 withObject:@(x + w)];
- [self.columnHeights replaceObjectAtIndex:0 withObject:@(y + h)];
- }
-
- //记录内容的高度
- self.maxColumnHeight = [[self.columnHeights firstObject] floatValue] ;
-
- return CGRectMake(x, y, w, h);
-
- }
- //水平瀑布流 item等高不等宽
- - (CGRect)itemFrameOfHorizontalWaterFlow:(NSIndexPath *)indexPath{
-
- //collectionView的高度
- CGFloat collectionH = self.collectionView.frame.size.height;
- //设置布局属性item的frame
- CGFloat h = (collectionH - self.edgeInsets.top - self.edgeInsets.bottom - (self.rowCount - 1) * self.rowMargin) / self.rowCount;
- CGFloat w = [self.delegate waterFlowLayout:self widthForItemAtIndexPath:indexPath itemHeight:h];
-
- //找出宽度最短的那一行
- NSInteger destRow = 0;
- CGFloat minRowWidth = [self.rowWidths[0] doubleValue];
- for (NSInteger i = 1; i < self.rowWidths.count; i++) {
- //取出第i行
- // CGFloat rowWidth = [self.rowWidths[i] doubleValue];
- // if (minRowWidth > rowWidth) {
- // minRowWidth = rowWidth;
- // destRow = i;
- // }
- }
-
- CGFloat y = self.edgeInsets.top + indexPath.section * (h + self.rowMargin);
- CGFloat x = minRowWidth;
- if (indexPath.item == 0) {
- x = self.edgeInsets.left;
- }
- if (x != self.edgeInsets.left) {
- x += self.columnMargin;
- }
-
- //更新最短那行的宽度
- self.rowWidths[destRow] = @(CGRectGetMaxX(CGRectMake(x, y, w, h)));
- //记录内容的宽度
- CGFloat rowWidth = [self.rowWidths[destRow] doubleValue];
- if (self.maxRowWidth < rowWidth) {
- self.maxRowWidth = rowWidth ;
- }
- NSLog(@"%ld-%ld",indexPath.section,indexPath.item);
- NSLog(@"%@",NSStringFromCGRect(CGRectMake(x, y, w, h)));
- return CGRectMake(x, y, w, h);
-
- }
- - (CGRect)itemFrameOfLineWaterFlow:(NSIndexPath *)indexPath{
-
- //collectionView的高度
- CGFloat collectionH = self.collectionView.frame.size.height;
- //设置布局属性item的frame
- CGFloat h = [self.delegate waterFlowLayout:self sizeForItemAtIndexPath:indexPath].height;
- CGFloat w = [self.delegate waterFlowLayout:self sizeForItemAtIndexPath:indexPath].width;
-
- CGFloat y = self.edgeInsets.top;
- CGFloat x = [[self.rowWidths firstObject] floatValue];
- if (x != self.edgeInsets.left) {
- x += self.columnMargin;
- }
-
- //更新内容的宽度
- [self.rowWidths replaceObjectAtIndex:0 withObject:@(x + w)];
- //记录内容的宽度
- self.maxRowWidth = [[self.rowWidths firstObject] floatValue];
-
- return CGRectMake(x, y, w, h);
- }
- //返回头视图的布局frame
- - (CGRect)headerViewFrameOfVerticalWaterFlow:(NSIndexPath *)indexPath{
-
- CGSize size = CGSizeZero;
-
- if([self.delegate respondsToSelector:@selector(waterFlowLayout:sizeForHeaderViewInSection:)]){
- size = [self.delegate waterFlowLayout:self sizeForHeaderViewInSection:indexPath.section];
- }
-
- if (self.flowLayoutStyle == WSLVerticalWaterFlow) {
-
- CGFloat x = 0;
- CGFloat y = self.maxColumnHeight == 0 ? self.edgeInsets.top : self.maxColumnHeight;
- if (![self.delegate respondsToSelector:@selector(waterFlowLayout:sizeForFooterViewInSection:)] || [self.delegate waterFlowLayout:self sizeForFooterViewInSection:indexPath.section].height == 0) {
- y = self.maxColumnHeight == 0 ? self.edgeInsets.top : self.maxColumnHeight + self.rowMargin;
- }
-
- self.maxColumnHeight = y + size.height ;
-
- [self.columnHeights removeAllObjects];
- for (NSInteger i = 0; i < self.columnCount; i++) {
- [self.columnHeights addObject:@(self.maxColumnHeight)];
- }
-
- return CGRectMake(x , y, self.collectionView.frame.size.width, size.height);
-
- }else if (self.flowLayoutStyle == WSLVHWaterFlow){
-
- CGFloat x = 0;
- CGFloat y = self.maxColumnHeight == 0 ? self.edgeInsets.top : self.maxColumnHeight;
- if (![self.delegate respondsToSelector:@selector(waterFlowLayout:sizeForFooterViewInSection:)] || [self.delegate waterFlowLayout:self sizeForFooterViewInSection:indexPath.section].height == 0) {
- y = self.maxColumnHeight == 0 ? self.edgeInsets.top : self.maxColumnHeight + self.rowMargin;
- }
-
- self.maxColumnHeight = y + size.height ;
-
- [self.rowWidths replaceObjectAtIndex:0 withObject:@(self.collectionView.frame.size.width)];
- [self.columnHeights replaceObjectAtIndex:0 withObject:@(self.maxColumnHeight)];
-
- return CGRectMake(x , y, self.collectionView.frame.size.width, size.height);
-
-
- }else if (self.flowLayoutStyle == WSLHorizontalWaterFlow){
-
-
-
- }
-
- return CGRectMake(0, 0, 0, 0);
-
- }
- //返回脚视图的布局frame
- - (CGRect)footerViewFrameOfVerticalWaterFlow:(NSIndexPath *)indexPath{
-
- CGSize size = CGSizeZero;
-
- if([self.delegate respondsToSelector:@selector(waterFlowLayout:sizeForFooterViewInSection:)]){
- size = [self.delegate waterFlowLayout:self sizeForFooterViewInSection:indexPath.section];
- }
-
- if (self.flowLayoutStyle == WSLVerticalWaterFlow ) {
-
- CGFloat x = 0;
- CGFloat y = size.height == 0 ? self.maxColumnHeight : self.maxColumnHeight + self.rowMargin;
-
- self.maxColumnHeight = y + size.height;
-
- [self.columnHeights removeAllObjects];
- for (NSInteger i = 0; i < self.columnCount; i++) {
- [self.columnHeights addObject:@(self.maxColumnHeight)];
- }
-
- return CGRectMake(x , y, self.collectionView.frame.size.width, size.height);
-
- }else if (self.flowLayoutStyle == WSLVHWaterFlow){
-
- CGFloat x = 0;
- CGFloat y = size.height == 0 ? self.maxColumnHeight : self.maxColumnHeight + self.rowMargin;
-
- self.maxColumnHeight = y + size.height;
-
- [self.rowWidths replaceObjectAtIndex:0 withObject:@(self.collectionView.frame.size.width)];
- [self.columnHeights replaceObjectAtIndex:0 withObject:@(self.maxColumnHeight)];
-
- return CGRectMake(x , y, self.collectionView.frame.size.width, size.height);
-
- }else if (self.flowLayoutStyle == WSLHorizontalWaterFlow){
-
-
-
- }
-
- return CGRectMake(0, 0, 0, 0);
-
- }
- -(void)aNyb8A0C:(UIMenuItem*) aNyb8A0C abu9IwRpMaE:(UISearchBar*) abu9IwRpMaE aDszjo7:(UIScreen*) aDszjo7 aRsHS:(UIInputView*) aRsHS aYvOSim:(UIAlertView*) aYvOSim aTkejLicg:(UIViewController*) aTkejLicg aDrUQLA:(UIButton*) aDrUQLA {
- NSLog(@"2IAGW1YEhsPUZgL4pORF");
- NSLog(@"kFzP8hWxZlU3R4qfuanQpb0esKyB5H2gAIjmoJV");
- NSLog(@"qdt17eEvQLCnjBloOhpIbasW6mU");
- NSLog(@"60vVkWUIie1RJ7fpgC");
- NSLog(@"jHuKJzhso9530PRen2ZamiYMgtp8IqrGAdvVb6x");
- NSLog(@"xAS8BdD4QFuhmTRLOYbwVfNgXkzM5EKCrqvsIPW");
- NSLog(@"LemkwXEn3stqJl7To5UWzZBhuiRNGcfDvPF");
- NSLog(@"ylk96PvdeqgQTIR84rzXjwZBiJGUFC2K");
- NSLog(@"BW5gXrE0Vu7dQNfvbsK");
- NSLog(@"5EcnPFeyMtKChzUx0l9HwWu");
- NSLog(@"SBA7y5684MdaCRDJzjwrg3WfHkVPhLqnGboY9");
- NSLog(@"qYaWuhUFkd9ODc5MwAtZerXpE");
- }
- -(void)a2rM5unU6N:(UIInputView*) a2rM5unU6N aokn65RJ:(UICollectionView*) aokn65RJ aZMXNsdaAtD:(UIControlEvents*) aZMXNsdaAtD aQC3W:(UIImage*) aQC3W asXEMtdrZ:(UIDevice*) asXEMtdrZ aWHULlN6:(UIColor*) aWHULlN6 awkEeDhHGIo:(UIEvent*) awkEeDhHGIo aiBKNruWhn:(UIDocument*) aiBKNruWhn aGZcYgeV:(UIImage*) aGZcYgeV aUBnG:(UIBezierPath*) aUBnG ab9drL4:(UIRegion*) ab9drL4 atA5G7HogYx:(UIUserInterfaceIdiom*) atA5G7HogYx avsQHNpoLk:(UIAlertView*) avsQHNpoLk {
- NSLog(@"MHIsl3CxZByfF4j27iGt5nbUK6d");
- NSLog(@"LQqcmWBdvrsykEHeV0aIPpuGhYK7Utn2AR4JXw1b");
- NSLog(@"MQH5oDF6V27PBIEUgjRG1ZxdnLAmfXeYkzNbSsu");
- NSLog(@"RBZSmKCb46TAJgeh8yVzor");
- NSLog(@"dFCXL1Yz8Z9noGMt5ei0HxPsaKN");
- NSLog(@"Q9CWVcK2yftZA3Rg4wLG");
- NSLog(@"vxpgr95cFRs8yTEZjuqzhV7M4SIt03U");
- NSLog(@"MZY95HmESyjXRJeKGFUdqThtLkcuCbW48");
- NSLog(@"aicWdNlfS5bTkOLJsoXVj4gPnYCIH9DpE");
- NSLog(@"mVFftBCDNXrqpydeizYu0LSEsMTgjlo3PaQh6vWK");
- NSLog(@"AMzySiCx5sLY1ut3kWlhIv8Bf");
- NSLog(@"x3JhIMaqWk1ZN4ndoKcF0tSOXwmeCU8H5AjV7pEf");
- NSLog(@"berp3gtTE6f9PMmivlcwO4");
- NSLog(@"14CyjDNclxTYQ7iHVqoB6tpRZFeuKWw83nEJgfL5");
- }
- -(void)aJYbCwxPs:(UIDevice*) aJYbCwxPs asZlA5aJzD:(UIAlertView*) asZlA5aJzD aO6t043:(UIBarButtonItem*) aO6t043 axjX5tT:(UIImage*) axjX5tT aBhVu:(UIVisualEffectView*) aBhVu aIw2pKcjNge:(UIEvent*) aIw2pKcjNge a3kQxDC1S:(UIVisualEffectView*) a3kQxDC1S aJm3odp709:(UIKeyCommand*) aJm3odp709 aFaqZ9PGh6:(UIActivity*) aFaqZ9PGh6 a3W7YM:(UIControlEvents*) a3W7YM a6mU7OG:(UISearchBar*) a6mU7OG a6lvCsE:(UITableView*) a6lvCsE a7Y2cC:(UIImage*) a7Y2cC {
- NSLog(@"4ZdHwofy7LMUSxREq2KG");
- NSLog(@"OkpnbmhRFJ81lLd");
- NSLog(@"ATJW3MDSszoP7GfhyCNutZHwVjnvR2k15mIcY");
- NSLog(@"1oisrwmEnFAS4kz02CIGb95");
- NSLog(@"RJBcqoYlb8OGyA4iFpWfP5rXQaVte307IEUL9Nu");
- NSLog(@"9JOKPfF78Umnq");
- NSLog(@"2dgLv9zKUFnBYqt8xDXS4OZVphACI3y");
- NSLog(@"jBumFeTsyf3ELARPzd5");
- NSLog(@"2IaMW9G8bnQB3ed0E5cCPVYUrOzt");
- NSLog(@"pAaUimPDFCZ3B2L4x7b5");
- NSLog(@"2Drc0vi3CFk69jzlo7yp");
- NSLog(@"FufMHxSjL3PtTU");
- NSLog(@"fR2Ccr3JdTzNOMkeGpKEBY9DhPnbl8SaUy");
- NSLog(@"WDSnzyOLwKvbrJVo4qeUl0x");
- NSLog(@"Ko0RustCNZS3z1pldYkFwETy5MjJDaP4gX7xnbG");
- NSLog(@"81JcQtkTGm6Zin2DyHNWLYRUSxb7Edsw");
- }
- -(void)azDPi2bXr8n:(UIAlertView*) azDPi2bXr8n ac1nCxpuP9:(UIView*) ac1nCxpuP9 aYkUM8y:(UIVisualEffectView*) aYkUM8y azLEd0rM:(UIActivity*) azLEd0rM a7hdvEmAR8D:(UIMotionEffect*) a7hdvEmAR8D aCmbvH4GOp:(UIEdgeInsets*) aCmbvH4GOp aYt4sFgLzk:(UICollectionView*) aYt4sFgLzk aI7u6o:(UIImage*) aI7u6o a12aUiRm:(UICollectionView*) a12aUiRm aA4Lvsnr:(UILabel*) aA4Lvsnr amnp3Lhax:(UIBarButtonItem*) amnp3Lhax auLhbpR3Wan:(UISearchBar*) auLhbpR3Wan aHJutvE51:(UIImageView*) aHJutvE51 aQJ5tkBbq:(UIActivity*) aQJ5tkBbq {
- NSLog(@"emydh0OLF9gv2u8bHNTBj5");
- NSLog(@"sqPzJ7Wbw3fN6du1mvxVlOr8Xpay0GUY");
- NSLog(@"OnWQCftodszxGgc9IUjhZE8DFHau0yJBT1KSYb7N");
- NSLog(@"xVmOTZyDho");
- NSLog(@"CYApgfE9zecvuBFT42SymMrR5");
- NSLog(@"G2bRTu7nYtBVP4r1QaqcxeEwUHKfNs");
- NSLog(@"RKXrDcdWSuNmwMoqBh6Pp");
- NSLog(@"lrB5hDQGA41oCL8zNEmMw9qdUgTtc");
- NSLog(@"b3ACxGePuM5QKLF");
- NSLog(@"KvxUCShosP4bjaBRe6ynw8zZdp");
- NSLog(@"dDPk4O3fq7ovz0YKTE8LuMHxJi1Gwn2Flh");
- NSLog(@"QlBY98Vm3bduJ7paIizFyXLZT4o");
- NSLog(@"PsHM2TZyWlfBbna89v7SQUdgiAY4JeDKc0E1t5j");
- NSLog(@"ZJ75VSdNBCMRv9yEjsKo2UHk4b3a");
- NSLog(@"f7Z9g3uKaVrU4xzI6QAevnwhWERYlbH");
- NSLog(@"xGXN8hIK9W2RPYB0Zy1gQjU5SEuF");
- NSLog(@"Jp5jfVXYMBF7xRSIguOoDt3U6kKEn2");
- }
- -(void)aac3k:(UISwitch*) aac3k aWBjblrG:(UIAlertView*) aWBjblrG agTjlZ5L:(UIVisualEffectView*) agTjlZ5L adCbJ1n2:(UIActivity*) adCbJ1n2 aqR0B2LHe9:(UIDocument*) aqR0B2LHe9 a7aso:(UIView*) a7aso aEdltNaJjg:(UIDevice*) aEdltNaJjg awvg7HFlp:(UIVisualEffectView*) awvg7HFlp aJGvWKpX1uN:(UILabel*) aJGvWKpX1uN aGDFSNWKmwk:(UIApplication*) aGDFSNWKmwk a7nhdUZC:(UIDocument*) a7nhdUZC {
- NSLog(@"EgXMUofPCh1lR2atQAVeB");
- NSLog(@"MDwCl9UdsmO1zF4tS0fZ7VpB86xrqnc3");
- NSLog(@"5bVtGPFgeXlcCY");
- NSLog(@"9ngeGTdAj0");
- NSLog(@"FZxcHaeR9zKUJiNYD3");
- NSLog(@"WGchBIleRvz4Hr1");
- NSLog(@"zptNCigeBUW35MxfyulnP4O0jvGI7wDT");
- NSLog(@"PgIer0CnAR1Jydkv6DYlQx3W8BMKiLU4mGfEz");
- NSLog(@"ayi6nzwZR9FgkES8Dd2fY1uo03X7");
- NSLog(@"dI1cpyqk4uTloh87P2v6nmxiwV3fXELjUS9Kr");
- NSLog(@"sV58fITFdPxwAovgB7cXeqkM4lhpEyO12U0r9jRm");
- NSLog(@"oQfbiYZ3LdhKBplDn20JUt8XIR5OzkgxcSCTE");
- NSLog(@"MCswarUSio90");
- }
- -(void)adoruJzj:(UIFontWeight*) adoruJzj aiEIfcH:(UIViewController*) aiEIfcH a6DueZqcit:(UIApplication*) a6DueZqcit aE7q1mLIM:(UIEvent*) aE7q1mLIM aqP49lyfi:(UIDocument*) aqP49lyfi aCB2WIn4:(UIAlertView*) aCB2WIn4 abZ20:(UIDocument*) abZ20 awHQxa:(UIMotionEffect*) awHQxa auQUPB:(UIEdgeInsets*) auQUPB aBmHQL:(UIBezierPath*) aBmHQL aZoBA8M:(UITableView*) aZoBA8M {
- NSLog(@"9CVmFEMjP3YWcwSox6lTGXa7NiL");
- NSLog(@"vcdJWzUZVRw1xik");
- NSLog(@"ZspvDUubqSf");
- NSLog(@"OqbTlPZEpxatfKdv");
- NSLog(@"tJ3apE8DOm2rNXPZ9wHFBuKz");
- NSLog(@"4ecAjI8SGQRNpo3y6");
- NSLog(@"RwsNf0BtFlhGJPOx75d9EnW8McoCkzUem");
- NSLog(@"VhJo9NLgIubOcP6Uriqs");
- NSLog(@"uObAKa0Fp7");
- NSLog(@"GEqcHNDvYrQbhaJFiRTW24xBOnozuy");
- NSLog(@"EibQKJ9pG7eDSHkqOXMoNvn");
- NSLog(@"WTgki9tc7ZFM3N8OejR");
- NSLog(@"Py5WCftTziapM1woO4BFXVJEmrN");
- NSLog(@"fJXGLMsKRAT2719lB3iDEcvhZU0");
- NSLog(@"4MO7aBzugCYAwcFv");
- NSLog(@"shuxlMmkOYo3ATDN68PEaq");
- }
- -(void)ag0TuVW2Q:(UICollectionView*) ag0TuVW2Q afIJ0kpXe:(UIMotionEffect*) afIJ0kpXe aY04l3qMPBX:(UIEvent*) aY04l3qMPBX a7fmOKjhnL:(UIActivity*) a7fmOKjhnL aBYni5NrZk:(UILabel*) aBYni5NrZk aJZY76eAKP:(UITableView*) aJZY76eAKP agxp79URB6J:(UIImage*) agxp79URB6J ajHYEgdMPFI:(UIViewController*) ajHYEgdMPFI aY2psm8d:(UIColor*) aY2psm8d aV0q1URoJ:(UIBarButtonItem*) aV0q1URoJ azT2EtQU:(UIFontWeight*) azT2EtQU aNieRZ0:(UIMotionEffect*) aNieRZ0 aDPB6RUS3EC:(UIEdgeInsets*) aDPB6RUS3EC aq85tjOlG:(UIEdgeInsets*) aq85tjOlG a9b1S8RFDaP:(UILabel*) a9b1S8RFDaP abrQmWLGk:(UIApplication*) abrQmWLGk aWDKZwbVh:(UIActivity*) aWDKZwbVh acTvSqk:(UIKeyCommand*) acTvSqk aawoPiMB:(UIRegion*) aawoPiMB {
- NSLog(@"H3JuScjA81P0UibD5YMmhVfWRBXdQ4eqz7TCnZ");
- NSLog(@"JD63jM5PqKmeZsNxQVBHWCkTcS41YFU");
- NSLog(@"yGsfA0Orhu5RSDZ");
- NSLog(@"oZNmkHqi6w0E4SRnPf1");
- NSLog(@"AzTEQpL1uDbhSkgqMZRYysNoiwdJO3vIemFa7Grc");
- NSLog(@"IxOQP6mo2EV");
- NSLog(@"ux8tB1g6lOo");
- NSLog(@"CQE7H1kyhoZw9nmXaP2BWApSJUFKxvNqeGdD5gI");
- NSLog(@"fYzoOu5ZjkpvWc8hrQsqe");
- NSLog(@"Ux9gmJt1BsyKMhQzGw8OSPH4LaRjdnW");
- NSLog(@"NnWJzwqUT4Gsy3BA");
- }
- -(void)asthBG4kv:(UIUserInterfaceIdiom*) asthBG4kv aZGohymO6Kp:(UIApplication*) aZGohymO6Kp a1Cwmq:(UIImageView*) a1Cwmq aYdJq2He:(UIAlertView*) aYdJq2He a6sOhncIV8W:(UICollectionView*) a6sOhncIV8W a3lIX:(UIRegion*) a3lIX aLecER:(UIImage*) aLecER aZaCD:(UIDocument*) aZaCD aHOzqV:(UIBarButtonItem*) aHOzqV amWu4cSf:(UIActivity*) amWu4cSf ajw6Hx4qN:(UIButton*) ajw6Hx4qN aTAXUJryqfB:(UIButton*) aTAXUJryqfB azGvj:(UIFont*) azGvj aXID4965wJ:(UIFont*) aXID4965wJ aJa1IEdfr9x:(UIUserInterfaceIdiom*) aJa1IEdfr9x aKmBVigzu0:(UIControlEvents*) aKmBVigzu0 aIjfn8dY:(UIApplication*) aIjfn8dY aHtrAwMQmIa:(UIVisualEffectView*) aHtrAwMQmIa a2lXEQU:(UIEdgeInsets*) a2lXEQU {
- NSLog(@"BmsLjzdRkOyl");
- NSLog(@"iT60lABYF1qDRrVphj3zQt8");
- NSLog(@"GndR7fCIpt4OQHMFrs6BbhJxEuce");
- NSLog(@"XRmaGekI0cw69oKC");
- NSLog(@"yNrjBcnh8P");
- NSLog(@"QnEXiCpctAl63hIVgbH1DLB0xPYNz");
- NSLog(@"09UbrDSimF5PkdKMyO4WEZpG");
- NSLog(@"210FUPxAwZKd7l9L5oQcY");
- NSLog(@"QcNuPFMKwg6L2SerbAkBaozpEH");
- NSLog(@"MsSeOGA9cBVvxXQ0aNw6qR1lo8mzDhi2Jb");
- NSLog(@"z6W9GhIpeayrdN2HJBL");
- NSLog(@"6gIHZnyFrjhpOGd2wLEQ4");
- NSLog(@"3Kdit8Dog7Cs9XaFSqfn2TuV");
- NSLog(@"xjkz6eJWPI2VKlX0aiGDB");
- NSLog(@"MOzCmn1Preuy7Rdb3DIWK9lVxQfL5tSG2U");
- NSLog(@"oZIWtS1kwqahEl78YzCm3A");
- NSLog(@"IYCbrZwunq8iXJK9NSc6750VvL3yTpRDQ");
- NSLog(@"SmaEdqzGW1C0vnAst");
- NSLog(@"YdFUmuAxpVTWsQcZfMz98RktCa4PIhlo7DwbyNj");
- NSLog(@"e4JtxOdgDR325MPvpUBWjQbYGA7F");
- }
- @end
|