Latest 1.0.0
Homepage https://github.com/kostyabl/KBCScrollView
License MIT
Platforms ios 9.0
Authors

KBCScrollView class provide a horizontal scroll (carousel) UIViews in UIScrollView. The class is designed to make it quick and easy.

Demo

alt tag

Installation

Just add KBCScrollView.h and KBCScrollView.m files to your project.
Or use CocoaPods:
pod 'KBCScrollView'

Usage

Add UIScrollView view on ViewController in storyborad and create outlet
Setup KBCScrollView by adding few line of code:
Array with yours UIViews

    NSMutableArray* arrWithUIViews = ...

Assign your array to KBCScrollView.views

    self.scrollView.views = arrWithUIViews;

It’s all for minimal init.
For more information, see example project.

Delegate methods

Setup

  1. Your object should to conform a protocol KBCScrollViewDelegate
  2. Set delegate, example. : self.scrollView.kbcScrollViewdelegate = self;
    Current page did change.

    -(void)currentPageDidChage:(NSUInteger)pageNumber;

    View did tapped

    -(void)didTappedToView:(UIView*)view onPage:(NSUInteger)pageNumber;

Latest podspec

{
    "name": "KBCScrollView",
    "version": "1.0.0",
    "summary": "UIView slider / carousel",
    "description": "KBCScrollView class provide a horizontal scroll (carousel) UIViews in UIScrollView. The class is designed to make it quick and easy.",
    "homepage": "https://github.com/kostyabl/KBCScrollView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Konstantin Blokhin": "[email protected]"
    },
    "social_media_url": "http://twitter.com/kostyabl",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/kostyabl/KBCScrollView.git",
        "tag": "1.0.0"
    },
    "source_files": "KBCScrollView"
}

Pin It on Pinterest

Share This