ifish/Ifish/views/LXAdScrollView/LXAdScrollView.h

29 lines
1.1 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// LXAdScrollView.h
// LXAdScrollview
//
// Created by imac on 16/11/8.
// Copyright © 2016年 xiang. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface LXAdScrollView : UIView
/*
*显示广告的数据源,可以有三种类型 1:NSString图片的网络地址采用SDWebImage加载
2:NSString本地图片文件名
* 3:使用UIImage
* 此属性赋值后会立即开启定时器,需要在下面两个属性设置完后再设置
*/
@property (nonatomic, copy) NSArray *adList;
@property (nonatomic, assign, readonly) NSInteger currentPage;
@property (nonatomic, assign) NSTimeInterval animationDuration;//自动滚动动画时间默认2s
@property (nonatomic, strong) UIPageControl *pageControl;
@property (nonatomic , copy) void (^tapActionBlock)(LXAdScrollView *adScrollView);
@property (nonatomic, strong) UIImageView *currentImageView;
@property (nonatomic, strong) UIImageView *leftImageView;
@property (nonatomic, strong) UIImageView *rightImageView;
@property (nonatomic, strong) UIScrollView *scrollView;
@end