不同宽度Item布局
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@class ZJCollectionLayout;
@protocol ZJCollectionLayoutDelegate <NSObject>
/** */
- (CGSize)flowLayout:(ZJCollectionLayout *) layout itemSizeForItemAtIndexPath:(NSIndexPath*)indexPath;
/** 每一列item之间的间距*/
- (CGFloat)itemColumnMarginInFlowLayout:(ZJCollectionLayout *) layout;
/** 每一行item之间的间距*/
- (CGFloat)itemRowMarginInFlowLayout:(ZJCollectionLayout *) layout;
/** 设置于collectionView边缘的间距*/
- (UIEdgeInsets)itemSectionInsetMarginInFlowLayout:(ZJCollectionLayout *) layout;
@end
@interface ZJCollectionLayout : UICollectionViewLayout
@property (nonatomic,weak) id<ZJCollectionLayoutDelegate> delegate;
@end
NS_ASSUME_NONNULL_END
#import "ZJCollectionLayout.h"
@interface ZJ