Latest 1.0.2
License MIT
Platforms ios 8.0, requires ARC


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


How to use

Using CocoaPods

CocoaPods Get Started

Create Podfile:

platform :ios, '8.0'

target 'YourTarget' do

pod 'HLZInfiniteScrollView', '~>1.0'


If you are using Swift, add use_frameworks!:

platform :ios, '8.0'

Copying files into your project

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


#import "HLZInfiniteScrollView.h"

@interface ViewController ()

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


@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;


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": "",
    "screenshots": "",
    "license": "MIT",
    "authors": {
        "Hu Lizhen": "[email protected]"
    "platforms": {
        "ios": "8.0"
    "source": {
        "git": "",
        "tag": "1.0.2"
    "source_files": "HLZInfiniteScrollView/HLZInfiniteScrollView.{h,m}",
    "requires_arc": true

Pin It on Pinterest

Share This