From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/screendisplay/Classes/Base/BaseView/LMJVerticalFlowLayout.h | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 60 insertions(+), 0 deletions(-) diff --git a/screendisplay/screendisplay/Classes/Base/BaseView/LMJVerticalFlowLayout.h b/screendisplay/screendisplay/Classes/Base/BaseView/LMJVerticalFlowLayout.h new file mode 100755 index 0000000..2209adb --- /dev/null +++ b/screendisplay/screendisplay/Classes/Base/BaseView/LMJVerticalFlowLayout.h @@ -0,0 +1,60 @@ +// +// LMJVerticalFlowLayout.h +// ��������������������� +// +// Created by apple on 16/7/31. +// Copyright �� 2016��� NJHu. All rights reserved. +// + +#import <UIKit/UIKit.h> + + +@class LMJVerticalFlowLayout; + + +@protocol LMJVerticalFlowLayoutDelegate <NSObject> + +@required +/** + * ������������ + * + * @param waterflowLayout ������������������������������������ + * @param indexPath ���������cell, ���indexPath, ������indexPath.section == 0 + * @param width layout��������������������� + * + * @return ���������������������������cell��������� + */ +- (CGFloat)waterflowLayout:(LMJVerticalFlowLayout *)waterflowLayout collectionView:(UICollectionView *)collectionView heightForItemAtIndexPath:(NSIndexPath *)indexPath itemWidth:(CGFloat)itemWidth; +@optional + +/** + * ���������������������, ������3 + */ +- (NSInteger)waterflowLayout:(LMJVerticalFlowLayout *)waterflowLayout columnsInCollectionView:(UICollectionView *)collectionView; +/** + * ���������, ������10 + */ +- (CGFloat)waterflowLayout:(LMJVerticalFlowLayout *)waterflowLayout columnsMarginInCollectionView:(UICollectionView *)collectionView; +/** + * ���������, ������10 + */ +- (CGFloat)waterflowLayout:(LMJVerticalFlowLayout *)waterflowLayout collectionView:(UICollectionView *)collectionView linesMarginForItemAtIndexPath:(NSIndexPath *)indexPath; + +/** + * ������collectionView���������������, ������{20, 10, 10, 10} + */ +- (UIEdgeInsets)waterflowLayout:(LMJVerticalFlowLayout *)waterflowLayout edgeInsetsInCollectionView:(UICollectionView *)collectionView; + + +@end + + + +@interface LMJVerticalFlowLayout : UICollectionViewLayout + +/** layout��������� */ +- (instancetype)initWithDelegate:(id<LMJVerticalFlowLayoutDelegate>)delegate; + ++ (instancetype)flowLayoutWithDelegate:(id<LMJVerticalFlowLayoutDelegate>)delegate; + +@end -- Gitblit v1.8.0