// // KJPageView.h // KJBannerViewDemo // // Created by 杨科军 on 2019/5/27. // Copyright © 2019 杨科军. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN typedef enum : NSInteger{ PageControlStyleRectangle = 0, // 默认类型 长方形 PageControlStyleCircle, // 圆形 PageControlStyleSquare, // 正方形 PageControlStyleSizeDot,// 大小点 }KJPageControlStyle; @class KJDotPageView; @interface KJPageView : UIView /// 总共点数 @property(nonatomic,assign) IBInspectable NSInteger totalPages; /// 当前点,默认第一个点 @property(nonatomic,assign) IBInspectable NSInteger currentIndex; /// 选中的色,默认白色 @property(nonatomic,strong) IBInspectable UIColor *selectColor; /// 背景色,默认灰色 @property(nonatomic,strong) IBInspectable UIColor *normalColor; /// 方块间隙,默认大小点5px,其余8px @property(nonatomic,assign) IBInspectable CGFloat margin; /// 方块宽度 @property(nonatomic,assign) IBInspectable CGFloat dotwidth; /// 方块高度 @property(nonatomic,assign) IBInspectable CGFloat dotheight; /// 类别,默认长方形 @property(nonatomic,assign) IBInspectable KJPageControlStyle pageType; /// 大小点控件 @property(nonatomic,strong) KJDotPageView *loopPageView; @end NS_ASSUME_NONNULL_END