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/LMJHorizontalFlowLayout.h |   61 ++++++++++++++++++++++++++++++
 1 files changed, 61 insertions(+), 0 deletions(-)

diff --git a/screendisplay/screendisplay/Classes/Base/BaseView/LMJHorizontalFlowLayout.h b/screendisplay/screendisplay/Classes/Base/BaseView/LMJHorizontalFlowLayout.h
new file mode 100755
index 0000000..b4338f4
--- /dev/null
+++ b/screendisplay/screendisplay/Classes/Base/BaseView/LMJHorizontalFlowLayout.h
@@ -0,0 +1,61 @@
+//
+//  LMJHorizontalFlowLayout.h
+//  ���������������������
+//
+//  Created by apple on 16/7/31.
+//  Copyright �� 2016��� NJHu. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+
+
+@class LMJHorizontalFlowLayout;
+
+
+@protocol LMJHorizontalFlowLayoutDelegate <NSObject>
+
+@required
+/**
+ *  ������������
+ *
+ *  @param waterflowLayout ������������������������������������
+ *  @param  indexPath          ���������cell, ���indexPath, ������indexPath.section == 0
+ *  @param itemHeight           layout���������������������
+ *
+ *  @return ���������������������������cell���������
+ */
+- (CGFloat)waterflowLayout:(LMJHorizontalFlowLayout *)waterflowLayout collectionView:(UICollectionView *)collectionView widthForItemAtIndexPath:(NSIndexPath *)indexPath itemHeight:(CGFloat)itemHeight;
+@optional
+
+/**
+ *  ���������������������, ������3
+ */
+- (NSInteger)waterflowLayout:(LMJHorizontalFlowLayout *)waterflowLayout linesInCollectionView:(UICollectionView *)collectionView;
+
+/**
+ *  ���������, ������10
+ */
+- (CGFloat)waterflowLayout:(LMJHorizontalFlowLayout *)waterflowLayout collectionView:(UICollectionView *)collectionView columnsMarginForItemAtIndexPath:(NSIndexPath *)indexPath;
+
+/**
+ *  ���������, ������10
+ */
+- (CGFloat)waterflowLayout:(LMJHorizontalFlowLayout *)waterflowLayout linesMarginInCollectionView:(UICollectionView *)collectionView;
+
+/**
+ *  ������collectionView���������������, ������{10, 10, 10, 10}
+ */
+- (UIEdgeInsets)waterflowLayout:(LMJHorizontalFlowLayout *)waterflowLayout edgeInsetsInCollectionView:(UICollectionView *)collectionView;
+
+
+@end
+
+
+
+@interface LMJHorizontalFlowLayout : UICollectionViewLayout
+
+/** layout��������� */
+- (instancetype)initWithDelegate:(id<LMJHorizontalFlowLayoutDelegate>)delegate;
+
++ (instancetype)flowLayoutWithDelegate:(id<LMJHorizontalFlowLayoutDelegate>)delegate;
+@end

--
Gitblit v1.8.0