Latest 1.2
Homepage https://github.com/levigroker/GRKPageViewController
License Creative Commons Attribution 3.0 Unported License
Platforms ios 6.0, requires ARC
Authors

A container UIViewController providing paginated scrolling between configured view
controllers. Similar to UIPageViewController, but with added control and feedback.

Sample Screenshot

Future Ideas

  • Vertical paging support.
  • Spacing between view controllers

Installing

If you’re using CocoPods it’s as simple as adding this to your Podfile:

pod 'GRKPageViewController'

otherwise, simply add GRKPageViewController.h and GRKPageViewController.m to your
project.

Documentation

GRKPageViewController follows the familiar data source and delegate pattern. To
configure, register your object as the data source and optionally register your object as
the delegate.

Your data source (GRKPageViewControllerDataSource) must implement:

- (NSUInteger)pageCountForPageViewController:(GRKPageViewController *)controller;
- (UIViewController *)viewControllerForIndex:(NSUInteger)index forPageViewController:(GRKPageViewController *)controller;

to specify the number of pages and provide the corresponding view controller objects.

Optionally your delegate (GRKPageViewControllerDelegate) can implement either of the
following to get feedback about index changes:

- (void)changedIndexOffset:(CGFloat)indexOffset forPageViewController:(GRKPageViewController *)controller;
- (void)changedIndex:(NSUInteger)index forPageViewController:(GRKPageViewController *)controller;

Additional documentation is available in GRKPageViewController.h and example usage can
be found in the GRKPageViewControllerTestApp source.

Disclaimer and Licence

About

A professional iOS engineer by day, my name is Levi Brown. Authoring a technical blog
grokin.gs, I am reachable via:

Twitter @levigroker
App.net @levigroker
Email [email protected]

Your constructive comments and feedback are always welcome.

Latest podspec

{
    "name": "GRKPageViewController",
    "version": "1.2",
    "summary": "Similar to UIPageViewController, but with added control and feedback.",
    "description": "ttA container UIViewController providing paginated scrolling between configured view controllers. Similar to UIPageViewController, but with added control and feedback.n",
    "homepage": "https://github.com/levigroker/GRKPageViewController",
    "license": "Creative Commons Attribution 3.0 Unported License",
    "authors": {
        "Levi Brown": "[email protected]"
    },
    "social_media_url": "https://twitter.com/levigroker",
    "source": {
        "git": "https://github.com/levigroker/GRKPageViewController.git",
        "tag": "1.2"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source_files": "GRKPageViewController/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This