| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- //
- // LxGridViewFlowLayout.h
- // LxGridView
- //
- #import <UIKit/UIKit.h>
- /*
- 此类来源于DeveloperLx的优秀开源项目:LxGridView
- github链接:https://github.com/DeveloperLx/LxGridView
- 我对这个类的代码做了一些修改;
- 感谢DeveloperLx的优秀代码~
- */
- @interface LxGridViewFlowLayout : UICollectionViewFlowLayout
- @property (nonatomic,assign) BOOL panGestureRecognizerEnable;
- @end
- @protocol LxGridViewDataSource <UICollectionViewDataSource>
- @optional
- - (void)collectionView:(UICollectionView *)collectionView
- itemAtIndexPath:(NSIndexPath *)sourceIndexPath
- willMoveToIndexPath:(NSIndexPath *)destinationIndexPath;
- - (void)collectionView:(UICollectionView *)collectionView
- itemAtIndexPath:(NSIndexPath *)sourceIndexPath
- didMoveToIndexPath:(NSIndexPath *)destinationIndexPath;
- - (BOOL)collectionView:(UICollectionView *)collectionView
- canMoveItemAtIndexPath:(NSIndexPath *)indexPath;
- - (BOOL)collectionView:(UICollectionView *)collectionView
- itemAtIndexPath:(NSIndexPath *)sourceIndexPath
- canMoveToIndexPath:(NSIndexPath *)destinationIndexPath;
- @end
- @protocol LxGridViewDelegateFlowLayout <UICollectionViewDelegateFlowLayout>
- @optional
- - (void)collectionView:(UICollectionView *)collectionView
- layout:(UICollectionViewLayout *)collectionViewLayout
- willBeginDraggingItemAtIndexPath:(NSIndexPath *)indexPath;
- - (void)collectionView:(UICollectionView *)collectionView
- layout:(UICollectionViewLayout *)collectionViewLayout
- didBeginDraggingItemAtIndexPath:(NSIndexPath *)indexPath;
- - (void)collectionView:(UICollectionView *)collectionView
- layout:(UICollectionViewLayout *)collectionViewLayout
- willEndDraggingItemAtIndexPath:(NSIndexPath *)indexPath;
- - (void)collectionView:(UICollectionView *)collectionView
- layout:(UICollectionViewLayout *)collectionViewLayout
- didEndDraggingItemAtIndexPath:(NSIndexPath *)indexPath;
- @end
|