提供给外界的接口:
BOOL isAutoCycle ---是否需要自动轮播
NSArray imageArray --- 图片数组
NSArray titleArray --- 文本数组
NSInteger timeDelay --- 图片轮播延迟
//代理方法设定的范例
//示例:****- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
//示例:****- (nullable NSArray<NSString *> *)sectionIndexTitlesForTableView:(UITableView *)tableView
#import <UIKit/UIKit.h>
@class WZHCycleView;
@protocol wzhCycleViewDelegate <NSObject>
@required
/**
* 外界给轮播器传递图片数组的代理方法
*
* @return 返回一个图片名数组
*/
- (nonnull NSArray<NSString *> *)imageArrayForWZHCycleView;
@optional
/**
* 外界给轮播器传送label的标题数组代理方法
*
* @return 返回一个label的显示内容的数组
*/
- (nullable NSArray <NSString *> *)titleArrayForWZHCycleView;
@end
@interface WZHCycleView : UIView
@property (weak,nonatomic) id <wzhCycleViewDelegate> delegate;
@property (assign,nonatomic) CGFloat timeDelay;
@property (assign,nonatomic,getter=isAutoCycle) BOOL autoCycle;
@property (assign,nonatomic,getter=isNetImage) BOOL netImage;
- (nonnull WZHCycleView *)initWithFrame:(CGRect)frame;
+ (nonnull WZHCycleView *)wzhCycleViewWithFrame:(CGRect)frame;
@end