Latest 1.0.0
Homepage https://github.com/jmenter/JAMSimplePageViewController
License MIT
Platforms ios 6.0, requires ARC
Authors

A simple, self contained UIPageViewController.

To use, simply alloc and init with either an array of view controller class names (or an array of view controllers that you’ve already newed up) and a transition style (either scroll or page curl.)

For example:


[JAMSimplePageViewController.alloc initWithViewControllerClassNames:@[ @"MainViewController",
                                                                       @"AlternateViewController",
                                                                       @"ThirdViewController" ]
                                                    transitionStyle:UIPageViewControllerTransitionStyleScroll];

…or…


[JAMSimplePageViewController.alloc initWithViewControllers:@[ TestViewController.new,
                                                              OtherViewController.new ]
                                           transitionStyle:UIPageViewControllerTransitionStylePageCurl];

What you’ll end up with is a UIPageViewController that is stuffed with UIViewControllers that automatically slides (or curls) left to right and has a UIPageControl indicator at the bottom, also wired up and ready to respond to taps.

Some things to note:
The array of view controller class names is checked and any classes that aren’t actually view controllers get ignored.
The array of view controllers get checked and if anything in the array is not a view controller it raises an exception.

This is not super configurable but that’s not the point. It’s a simple page view controller, easy to use.

Latest podspec

{
    "name": "JAMSimplePageViewController",
    "version": "1.0.0",
    "summary": "A simple, self contained UIPageViewController.",
    "description": "                   JAMSimplePageViewController is a subclass of UIPageViewController. You can feed it UIViewControllers and it automatically handles paging and displaying a UIPageControl.n",
    "homepage": "https://github.com/jmenter/JAMSimplePageViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Jeff Menter": "[email protected]"
    },
    "social_media_url": "http://twitter.com/jmenter",
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/jmenter/JAMSimplePageViewController.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "Classes",
        "Classes/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This