| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 | 
							- //
 
- //  WMZBannerConfig.h
 
- //  WMZBanner
 
- //
 
- //  Created by wmz on 2019/9/6.
 
- //  Copyright © 2019 wmz. All rights reserved.
 
- //
 
- #ifndef WMZBannerConfig_h
 
- #define WMZBannerConfig_h
 
- #if __has_include(<SDWebImage/UIImageView+WebCache.h>)
 
- #import <SDWebImage/UIImageView+WebCache.h>
 
- #else
 
- #import "UIImageView+WebCache.h"
 
- #endif
 
- #define BANNERCOUNT 500
 
- #define BannerWitdh  [UIScreen mainScreen].bounds.size.width
 
- #define BannerHeight [UIScreen mainScreen].bounds.size.height
 
- #define BannerWeakSelf(obj) __weak typeof(obj) weakObject = obj;
 
- #define BannerStrongSelf(obj) __strong typeof(obj) strongObject = weakObject;
 
- #define BannerColor(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
 
- #define WMZBannerPropStatementAndPropSetFuncStatement(propertyModifier,className, propertyPointerType, propertyName)           \
 
- @property(nonatomic,propertyModifier)propertyPointerType  propertyName;                                                 \
 
- - (className * (^) (propertyPointerType propertyName)) propertyName##Set;
 
- #define WMZBannerPropSetFuncImplementation(className, propertyPointerType, propertyName)                                       \
 
- - (className * (^) (propertyPointerType propertyName))propertyName##Set{                                                \
 
- return ^(propertyPointerType propertyName) {                                                                            \
 
- self->_##propertyName = propertyName;                                                                                         \
 
- return self;                                                                                                            \
 
- };                                                                                                                      \
 
- }
 
- /*
 
-  * cell的block
 
-  */
 
- typedef UICollectionViewCell* (^BannerCellCallBlock)(NSIndexPath *indexPath,UICollectionView* collectionView,id model,UIImageView* bgImageView,NSArray*dataArr);
 
- /*
 
-  * 点击
 
-  */
 
- typedef void (^BannerClickBlock)(id anyID,NSInteger index);
 
- /*
 
-  * 自定义pageControl
 
-  */
 
- typedef void (^BannerPageControl)(UIControl* pageControl);
 
- /*
 
-  * 点击 ,可获取居中cell
 
-  */
 
- typedef void (^BannerCenterClickBlock)(id anyID,NSInteger index,BOOL isCenter,UICollectionViewCell* cell);
 
- /*
 
-  * 滚动结束
 
-  */
 
- typedef void (^BannerScrollEndBlock)(id anyID,NSInteger index,BOOL isCenter,UICollectionViewCell* cell);
 
- /*
 
- * 滚动
 
- */
 
- typedef void (^BannerScrollBlock)(CGPoint point);
 
- /*
 
-  * 自定义下划线
 
-  */
 
- typedef void (^BannerSpecialLine)(UIView *line);
 
- /*
 
-  *cell动画的位置
 
-  */
 
- typedef enum :NSInteger{
 
-     BannerCellPositionCenter      = 0,             //居中 默认
 
-     BannerCellPositionBottom      = 1,             //置底
 
-     BannerCellPositionTop         = 2,             //顶部
 
- }BannerCellPosition;
 
- /*
 
-  *特殊样式
 
-  */
 
- typedef enum :NSInteger{
 
-     SpecialStyleLine      = 1,             //下划线
 
-     SpecialStyleFirstScale      = 2,       //首个变大效果
 
- }SpecialStyle;
 
- /*
 
-  *pageControl的位置
 
-  */
 
- typedef enum :NSInteger{
 
-     BannerControlCenter      = 0,             //居中 默认
 
-     BannerControlLeft        = 1,             //左下
 
-     BannerControlRight       = 2,             //右下
 
- }BannerControlPosition;
 
- #endif /* WMZBannerConfig_h */
 
 
  |