Latest 1.0.2
Homepage https://github.com/Mervin1024/MERPageViewController
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Support

Objective-C & iOS 8+.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

self.pageViewController = [[MERPageViewController alloc] init];
self.pageViewController.dataSource = self;
self.pageViewController.delegate = self;
[self addChildViewController:self.pageViewController];
[self.view addSubview:self.pageViewController.view];
self.pageViewController.view.frame = [UIScreen mainScreen].bounds;

Required dataSource

#pragma mark ----------------- MERPageViewControllerDataSource -----------------

- (nonnull UIViewController *)mer_pageViewController:(nonnull MERPageViewController *)pageViewController controllerAtIndex:(NSInteger)index {
return [self.pageControllers objectAtIndex:index];
}

- (NSInteger)numberOfControllersInPageViewController:(nonnull MERPageViewController *)pageViewController {
return self.pageControllers.count;
}

Installation

MERPageViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'MERPageViewController'

Author

Mervin1024, [email protected]

License

MERPageViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MERPageViewController",
    "version": "1.0.2",
    "summary": "Custom horizontal scroll PageViewController. Support paging scroll and transition with animation.",
    "description": "'Because the UIPageViewController has some bugs in UIPageViewControllerTransitionStyleScroll & UIPageViewControllerNavigationOrientationHorizontal, so custom a horizontal scroll PageViewController.'",
    "homepage": "https://github.com/Mervin1024/MERPageViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Mervin1024": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Mervin1024/MERPageViewController.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MERPageViewController/Classes/**/*"
}

Pin It on Pinterest

Share This