Latest 1.0.1
Homepage https://github.com/Insfgg99x/FGGAutomaticScrollView
License MIT
Platforms ios 6.0, requires ARC
Dependencies SDWebImage
Frameworks Foundation, UIKit
Authors

FGGAutomaticScrollView

………………………………………………………………………..

Introduction

A class with ad. pics auotmatic scrolling.
FGGAutoScrollView

Installtion

Manual:

Download This Project and drag the FGGAutomaticScrollView folder into your peroject, do not forget to ensure "copy item if need" being selected.

Cocoapods:

pod 'FGGAutoScrollView', '~> 1.0.1'

Usage

  • 加载网络图片:

    -(instancetype)initWithFrame:(CGRect)frame
                               placeHolderImage:(UIImage *)placeHolderImage
                                      imageURLs:(NSArray *)URLArray
                          imageDidSelectedBlock:(FGGImageClickBlock)didSelectedImageAtIndex;
  • 加载本地图片:
    -(instancetype)initWithFrame:(CGRect)frame
                               placeHolderImage:(UIImage *)placeHolderImage
                                localImageNames:(NSArray *)imageNames
                          imageDidSelectedBlock:(FGGImageClickBlock) didSelectedImageAtIndex;
  • 若需要设置滚动时的回调,只需要给这个属性赋值:
    @property(nonatomic,copy)void (^imageDidScrolledBlock)(NSInteger index);

Explain:

若不需要为图片添加点击事件,初始化时,点击图片的回调block置为nil就可以了。
…………………………………………………………………….
Copyright (c) 2016年 CGPointZero. All rights reserved.

Latest podspec

{
    "name": "FGGAutoScrollView",
    "version": "1.0.1",
    "summary": "A class with ad. pics auotmatic scrolling.",
    "homepage": "https://github.com/Insfgg99x/FGGAutomaticScrollView",
    "license": "MIT",
    "authors": {
        "CGPointZero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Insfgg99x/FGGAutomaticScrollView.git",
        "tag": "1.0.1"
    },
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "FGGAutomaticScrollView/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This