Latest 1.0.0
Homepage https://github.com/litt1e-p/LPViewPagerController
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit
Authors

LPViewPagerController is a tiny controller component which is base on UIPageViewController and it’s easy to use.

Usage

// adopt LPViewPagerDataSource
// implement method below
- (NSUInteger)numberOfTabsForViewPager:(LPViewPagerController *)viewPager;
// and there are 2 optional method for implement
- (UIViewController *)viewPager:(LPViewPagerController *)viewPager contentViewControllerForTabAtIndex:(NSUInteger)index;
- (UIView *)viewPager:(LPViewPagerController *)viewPager contentViewForTabAtIndex:(NSUInteger)index;

// adopt LPViewPagerDelegate and implement these optional methods below if needed
- (void)viewPager:(LPViewPagerController *)viewPager didChangeTabToIndex:(NSUInteger)index;
- (CGFloat)viewPager:(LPViewPagerController *)viewPager valueForOption:(ViewPagerOption)option withDefault:(CGFloat)value;
- (void)setSubViewScrollStatus:(BOOL)enabled;

// other properties
`there are some properties for customization just follow the sample project`

Install

using cocoaPods:

  pod 'LPViewPagerController', '~> 1.0.0'

Screenshot

LPViewPagerController

Update

  • v1.0.0 —- first commit version

Latest podspec

{
    "name": "LPViewPagerController",
    "version": "1.0.0",
    "summary": "a tiny controller component which is base on UIPageViewController.",
    "description": "tiny ViewController basing UIPageViewController for switching viewController's view",
    "homepage": "https://github.com/litt1e-p/LPViewPagerController",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "litt1e-p": "[email protected]"
    },
    "source": {
        "git": "https://github.com/litt1e-p/LPViewPagerController.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "LPViewPagerController/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This