Latest 1.0.2
Homepage https://github.com/hulizhen/HLZInfiniteScrollView
License MIT
Platforms ios 8.0, requires ARC
Authors

HLZInfiniteScrollView

This library provides a scroll view, which can be scrolled infinitely and automatically, by making use of UICollectionView.

hlzinfinitescrollview

How to use

Using CocoaPods

CocoaPods Get Started

Create Podfile:

platform :ios, '8.0'

target 'YourTarget' do

pod 'HLZInfiniteScrollView', '~>1.0'

end

If you are using Swift, add use_frameworks!:

platform :ios, '8.0'
use_frameworks!

Copying files into your project

Copy the interface and implementation files into your project and include the HLZInfiniteScrollView.h.

Demo

#import "HLZInfiniteScrollView.h"

@interface ViewController ()

@property (nonatomic, weak) IBOutlet HLZInfiniteScrollView *scrollView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    NSMutableArray *views = [[NSMutableArray alloc] init];
    for (int i = 0; i < N; ++i) {
        UIView *view = [[UIView alloc] init];

        ...

        [views addObject:view];
    }

    self.scrollView.pageControlEnabled = YES;
    self.scrollView.pagingEnabled = YES;
    self.scrollView.autoScrollEnabled = YES;
    self.scrollView.autoScrollTimerInterval = 5.0;
    self.scrollView.autoScrollDirection = AutoScrollDirectionRight;
    self.scrollView.contentViews = imageViews;
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];

    self.scrollView.currentPage = 0;
}

@end

Check out the demo project to see the details.

Latest podspec

{
    "name": "HLZInfiniteScrollView",
    "version": "1.0.2",
    "summary": "A scroll view which can be scrolled infinitely and automatically.",
    "description": "An Objective-C class providing a scroll view which can be scrolled infinitely and automatically.",
    "homepage": "https://github.com/hulizhen/HLZInfiniteScrollView",
    "screenshots": "https://cloud.githubusercontent.com/assets/2831422/16691969/7bef5aec-4561-11e6-9163-2dae603c0635.gif",
    "license": "MIT",
    "authors": {
        "Hu Lizhen": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/hulizhen/HLZInfiniteScrollView.git",
        "tag": "1.0.2"
    },
    "source_files": "HLZInfiniteScrollView/HLZInfiniteScrollView.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This