Latest 1.0.4
Homepage https://github.com/jinht/BannerScrollView
License MIT
Platforms ios 8.0
Dependencies SDWebImage
Frameworks UIKit
Authors

JhtBannerScrollView

先上图,看一下是否符合你的场景吧!

Function Description

  1. 无限循环自动滚动卡片
  2. 三段式循环滚动广告卡片
       

    how to use

    1. podfile

    
    platform:ios, '8.0'

target ‘*****’ do

pod ‘JhtBannerScrollView’

end


#### 2. 相关参数配置简述:各属性均有其相应default value,使用时亦可根据自己需求进行相应修改
##### a. 滚动方向
```oc
/** banner滚动方向 */
typedef NS_ENUM(NSUInteger, JhtBannerViewOrientation) {
    // 横向
    BV_Orientation_Horizontal,
    // 纵向
    BV_Orientation_Vertical,
};
/** 滚动方向
 *  default:BV_Orientation_Horizontal
 */
@property (nonatomic, assign) JhtBannerViewOrientation orientation;
b. alpha && space
/** 非当前页的透明比例(蒙板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;
c. 滚动 && 循环
/** 是否开启自动滚动
 *  default:YES
 */
@property (nonatomic, assign) BOOL isOpenAutoScroll;
/** 是否开启无限轮播
 *  default:YES
 */
@property (nonatomic, assign) BOOL isCarousel;
/** 自动切换视图的时间
 *  default:3.0
 */
@property (nonatomic, assign) NSTimeInterval autoTime;

3. Public Method:可根据自己需求使用相应Method

/** 刷新视图 */
- (void)reloadData;

/** 获取可重复使用的卡片View(cardView) */
- (UIView *)dequeueReusableView;

/** 滚动到指定的页面 */
- (void)scrollToPageWithPageNumber:(NSUInteger)pageNumber;

/** 继续滚动 */
- (void)scrollContinue;
/** 暂停滚动 */
- (void)scrollPause;
  • 在demo中可以查看相关的使用和配置方法(使用demo之前请先 pod install

Remind

  • ARC
  • iOS >= 8.0
  • iPhone iPad

Hope

  • If you find bug when used,Hope you can Issues me,Thank you or try to download the latest code of this framework to see the BUG has been fixed or not
  • If you find the function is not enough when used,Hope you can Issues me,I very much to add more useful function to this framework ,Thank you !

Latest podspec

{
    "name": "JhtBannerScrollView",
    "version": "1.0.4",
    "summary": "banner/u5e7fu544au9875/u5faau73afu6edau52a8u5e7fu544au56feu7247/u65e0u9650u5faau73afu81eau52a8u6edau52a8u5361u7247",
    "homepage": "https://github.com/jinht/BannerScrollView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jinht": "[email protected]"
    },
    "social_media_url": "https://blog.csdn.net/Anticipate91",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/jinht/BannerScrollView.git",
        "tag": "1.0.4"
    },
    "ios": {
        "vendored_frameworks": "JhtBannerScrollView_SDK/JhtBannerScrollView.framework"
    },
    "frameworks": "UIKit",
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This