https://github.com/remirobert/rrcustompagecontroller
Custom PageViewController for iOS
https://github.com/remirobert/rrcustompagecontroller
Last synced: about 1 year ago
JSON representation
Custom PageViewController for iOS
- Host: GitHub
- URL: https://github.com/remirobert/rrcustompagecontroller
- Owner: remirobert
- License: mit
- Created: 2014-07-27T08:52:03.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-07-31T21:43:07.000Z (almost 12 years ago)
- Last Synced: 2024-04-24T05:58:09.477Z (about 2 years ago)
- Language: Objective-C
- Size: 305 KB
- Stars: 14
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RRCustomPageController
[](https://travis-ci.org/remirobert/RRCustomPageController)
[](http://cocoadocs.org/docsets/RRCustomPageController)
[](http://cocoadocs.org/docsets/RRCustomPageController)
[](http://cocoadocs.org/docsets/RRCustomPageController)

====
## Usage
Each UIViewControllers must inherit of RRPageController, and the init it with title or UIImage.
``` Objective-c
#import "RRViewController.h"
#import "RRCustomPageController.h"
#import "RRPageController.h"
#import "RRViewController1.h"
@interface RRViewController ()
@end
@implementation RRViewController
- (void) viewDidAppear:(BOOL)animated {
RRViewController1 *c1 = [[RRViewController1 alloc] initWithTitle:@"title1"];
RRViewController1 *c2 = [[RRViewController1 alloc] initWithTitle:@"title2"];
RRViewController1 *c3 = [[RRViewController1 alloc] initWithTitle:@"title3"];
RRViewController1 *c4 = [[RRViewController1 alloc] initWithTitle:@"title4"];
RRCustomPageController *controller = [[RRCustomPageController alloc] initWithControllers:@[c1, c2, c3, c4]];
controller.menuBar.backgroundColor = [UIColor colorWithRed:0.842 green:0.000 blue:0.000 alpha:1.000];
[self presentViewController:controller animated:NO completion:nil];
}
```
## Installation
RRCustomPageController is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
pod "RRCustomPageController"
## Author
remirobert, remi.robert@epitech.eu
## License
RRCustomPageController is available under the MIT license. See the LICENSE file for more info.