Latest 0.1.5
Homepage https://github.com/josechagas/JLCustomPagingView
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/José Lucas/JLCustomPagingView.svg?style=flat)](https://travis-ci.org/José Lucas/JLCustomPagingView)
Version
License
Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

JLCustomPagingView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "JLCustomPagingView"

Initial Configurations

First Step

Import it on every file that use this framework.

import JLCustomPagingView
Second Step

Go to the storyboard that has the View Controller you want to have an instace of JLCustomPagingView add a view to your view Controller, put all of the constraints you want, after you have to say that view is a JLCustomPagingView and create an outlet of this JLCustomPagingView.

@IBOutlet weak var myPagingView: JLCustomPagingView!
Third Step

After you create the corresponding outlet you should implement the protocols CustomPagingViewDataSource and CustomPagingViewDelegate.

class ViewController: UIViewController,CustomPagingViewDataSource,CustomPagingViewDelegate

Quick Tips

Reloading Data
reloadData()
CustomPagingViewDataSource methods

The number of items you want it to have

numbOfItems()->Int

The item that should stay at index

itemAtIndex(index:Int)->UIView!
CustomPagingViewDelegate methods

This method is called to know if the item at corresponing index should recognize tap events

shouldItemReceiveTapEvents(ItemAtIndex index:Int)->Bool

This method is called when the user taps on the top item

didSelectItemWithIndex(index:Int,item:UIView)

This method is called when the top visible item, so the actived one changes

didChangeTopItemIndexTo(newTopItemIndex:Int,lastTopItemIndex:Int)

Author

José Lucas

License

JLCustomPagingView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "JLCustomPagingView",
    "version": "0.1.5",
    "summary": "JLCustomPagingView presenting diferent views and view controller on diferent way.",
    "description": "This is a library created to help all developers that do not want to use the scrollView or the PageViewController to present diferent views and viewcontrollers and do not want to waste precious time creating his own.Simple to implement and understandnJLCustomPagingView will help you to improve your time.",
    "homepage": "https://github.com/josechagas/JLCustomPagingView",
    "license": "MIT",
    "authors": {
        "Josu00e9 Lucas": "[email protected]"
    },
    "source": {
        "git": "https://github.com/josechagas/JLCustomPagingView.git",
        "tag": "0.1.5"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "Pod/Classes/*.swift"
}

Pin It on Pinterest

Share This