/** banner滾動方向 */
typedef NS_ENUM(NSUInteger, JhtBannerViewOrientation) {
// 橫向
BV_Orientation_Horizontal,
// 縱向
BV_Orientation_Vertical,
};
/** 滾動方向
* default:BV_Orientation_Horizontal
*/
@property (nonatomic, assign) JhtBannerViewOrientation orientation;
複製代碼
/** 非當前頁的透明比例(蒙板alpha)
* default:0.4
*/
@property (nonatomic, assign) CGFloat minCoverViewAlpha;
/** View之間的左右間距
* default:20.0
*/
@property (nonatomic, assign) CGFloat leftRightMargin;
/** 兩側小的View與中間View的高度差
* default:15.0
*/
@property (nonatomic, assign) CGFloat topBottomMargin;
複製代碼
/** 是否開啓自動滾動
* default:YES
*/
@property (nonatomic, assign) BOOL isOpenAutoScroll;
/** 是否開啓無限輪播
* default:YES
*/
@property (nonatomic, assign) BOOL isCarousel;
/** 自動切換視圖的時間
* default:3.0
*/
@property (nonatomic, assign) NSTimeInterval autoTime;
複製代碼
/** 刷新視圖 */
- (void)reloadData;
/** 獲取可重複使用的卡片View(cardView) */
- (UIView *)dequeueReusableView;
/** 滾動到指定的頁面 */
- (void)scrollToPageWithPageNumber:(NSUInteger)pageNumber;
/** 繼續滾動 */
- (void)scrollContinue;
/** 暫停滾動 */
- (void)scrollPause;
複製代碼
GitHub 傳送門git