From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h | 211 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 211 insertions(+), 0 deletions(-) diff --git a/screendisplay/Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h b/screendisplay/Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h new file mode 100755 index 0000000..817b2f6 --- /dev/null +++ b/screendisplay/Pods/SDCycleScrollView/SDCycleScrollView/Lib/SDCycleScrollView/SDCycleScrollView.h @@ -0,0 +1,211 @@ +// +// SDCycleScrollView.h +// SDCycleScrollView +// +// Created by aier on 15-3-22. +// Copyright (c) 2015��� GSD. All rights reserved. +// + +/* + + ********************************************************************************* + * + * ������������ ������SDCycleScrollView������QQ������185534916 ������������ + * + * ������������������������������������������������������bug������������������������������������������������������������������������bug��� + * ��������������������� + * ������������:GSD_iOS + * Email : gsdios@126.com + * GitHub: https://github.com/gsdios + * + * ���������������������������SDAutoLayout������ + * ���������������������������������������Cell���Tableview������������������Label���ScrollView��������������������������� + * ���������������������AutoLayout������ + * ���������������http://www.letv.com/ptv/vplay/24038772.html + * ���������������https://github.com/gsdios/SDAutoLayout/blob/master/README.md + * GitHub���https://github.com/gsdios/SDAutoLayout + ********************************************************************************* + + */ + +/* + * ���������������1.62 + * ���������������2016.04.21 + */ + +#import <UIKit/UIKit.h> + +typedef enum { + SDCycleScrollViewPageContolAlimentRight, + SDCycleScrollViewPageContolAlimentCenter +} SDCycleScrollViewPageContolAliment; + +typedef enum { + SDCycleScrollViewPageContolStyleClassic, // ������������������������ + SDCycleScrollViewPageContolStyleAnimated, // ������������pagecontrol + SDCycleScrollViewPageContolStyleNone // ���������pagecontrol +} SDCycleScrollViewPageContolStyle; + +@class SDCycleScrollView; + +@protocol SDCycleScrollViewDelegate <NSObject> + +@optional + +/** ������������������ */ +- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index; + +/** ������������������ */ +- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didScrollToIndex:(NSInteger)index; + + + + + + +// ������������������������cell��������������������������������������� + +// ========== ���������������cell ========== + +/** ������������������������cell���������������������������������������������������������cell���class��� */ +- (Class)customCollectionViewCellClassForCycleScrollView:(SDCycleScrollView *)view; + +/** ������������������������cell���������������������������������������������������������cell���Nib��� */ +- (UINib *)customCollectionViewCellNibForCycleScrollView:(SDCycleScrollView *)view; + +/** ���������������������cell���������������������������������������������cell��������������������������������������� */ +- (void)setupCustomCell:(UICollectionViewCell *)cell forIndex:(NSInteger)index cycleScrollView:(SDCycleScrollView *)view; + +@end + +@interface SDCycleScrollView : UIView + + +/** ��������������������������������� */ ++ (instancetype)cycleScrollViewWithFrame:(CGRect)frame delegate:(id<SDCycleScrollViewDelegate>)delegate placeholderImage:(UIImage *)placeholderImage; + ++ (instancetype)cycleScrollViewWithFrame:(CGRect)frame imageURLStringsGroup:(NSArray *)imageURLStringsGroup; + + +/** ��������������������������������� */ ++ (instancetype)cycleScrollViewWithFrame:(CGRect)frame imageNamesGroup:(NSArray *)imageNamesGroup; + +/** ���������������������������������2,infiniteLoop:������������������ */ ++ (instancetype)cycleScrollViewWithFrame:(CGRect)frame shouldInfiniteLoop:(BOOL)infiniteLoop imageNamesGroup:(NSArray *)imageNamesGroup; + + +////////////////////// ���������API ////////////////////// + +/** ������������ url string ������ */ +@property (nonatomic, strong) NSArray *imageURLStringsGroup; + +/** ������������������������������������������ */ +@property (nonatomic, strong) NSArray *titlesGroup; + +/** ������������������ */ +@property (nonatomic, strong) NSArray *localizationImageNamesGroup; + + + + + +////////////////////// ������������API ////////////////////// + +/** ������������������������,������2s */ +@property (nonatomic, assign) CGFloat autoScrollTimeInterval; + +/** ������������������,������Yes */ +@property (nonatomic,assign) BOOL infiniteLoop; + +/** ������������������,������Yes */ +@property (nonatomic,assign) BOOL autoScroll; + +/** ������������������������������������������ */ +@property (nonatomic, assign) UICollectionViewScrollDirection scrollDirection; + +@property (nonatomic, weak) id<SDCycleScrollViewDelegate> delegate; + +/** block������������������ */ +@property (nonatomic, copy) void (^clickItemOperationBlock)(NSInteger currentIndex); + +/** block������������������ */ +@property (nonatomic, copy) void (^itemDidScrollOperationBlock)(NSInteger currentIndex); + +/** ���������������������������������������������������index */ +- (void)makeScrollViewScrollToIndex:(NSInteger)index; + +/** ������viewWillAppear���������������������������������������������������������viewWillAppear������������������ */ +- (void)adjustWhenControllerViewWillAppera; + +////////////////////// ���������������API ////////////////////// + +/** ���������������ContentMode������������ UIViewContentModeScaleToFill */ +@property (nonatomic, assign) UIViewContentMode bannerImageViewContentMode; + +/** ��������������������������������������������� */ +@property (nonatomic, strong) UIImage *placeholderImage; + +/** ������������������������ */ +@property (nonatomic, assign) BOOL showPageControl; + +/** ���������������������������������pagecontrol������������YES */ +@property(nonatomic) BOOL hidesForSinglePage; + +/** ��������������������� */ +@property (nonatomic, assign) BOOL onlyDisplayText; + +/** pagecontrol ������������������������������ */ +@property (nonatomic, assign) SDCycleScrollViewPageContolStyle pageControlStyle; + +/** ������������������ */ +@property (nonatomic, assign) SDCycleScrollViewPageContolAliment pageControlAliment; + +/** ������������������������������������������������������������������������������������ */ +@property (nonatomic, assign) CGFloat pageControlBottomOffset; + +/** ������������������������������������������������������������������������������������ */ +@property (nonatomic, assign) CGFloat pageControlRightOffset; + +/** ��������������������������� */ +@property (nonatomic, assign) CGSize pageControlDotSize; + +/** ��������������������������������� */ +@property (nonatomic, strong) UIColor *currentPageDotColor; + +/** ��������������������������������� */ +@property (nonatomic, strong) UIColor *pageDotColor; + +/** ��������������������������������� */ +@property (nonatomic, strong) UIImage *currentPageDotImage; + +/** ��������������������������������� */ +@property (nonatomic, strong) UIImage *pageDotImage; + +/** ������������label������������ */ +@property (nonatomic, strong) UIColor *titleLabelTextColor; + +/** ������������label������������ */ +@property (nonatomic, strong) UIFont *titleLabelTextFont; + +/** ������������label������������ */ +@property (nonatomic, strong) UIColor *titleLabelBackgroundColor; + +/** ������������label������ */ +@property (nonatomic, assign) CGFloat titleLabelHeight; + +/** ������������label������������ */ +@property (nonatomic, assign) NSTextAlignment titleLabelTextAlignment; + +/** ��������������������������������������������� */ +- (void)disableScrollGesture; + + +////////////////////// ������������API ////////////////////// + +/** ������������������������������������������������SDWebImage������������������������������ */ ++ (void)clearImagesCache; + +/** ��������������������������������������������� */ +- (void)clearCache; + +@end -- Gitblit v1.8.0