grk

GRKPageViewController

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

Showing:

Popularity

Downloads/wk

0

GitHub Stars

40

Maintenance

Last Commit

7yrs ago

Contributors

1

Package

Dependencies

0

License

Creative Commons Attribution 3.0 Unported License

Categories

Readme

GRKPageViewController

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 levigroker@gmail.com

Your constructive comments and feedback are always welcome.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial