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

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

--
Gitblit v1.8.0