Latest 1.0.0
Homepage https://github.com/ChangbaDevs/KTVPageViewController
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, Foundation
Authors

KTVPageViewController is a horizontal scroll view controller

Installation

Installation with CocoaPods

To integrate KTVPageViewController into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'KTVPageViewController', '~> 1.0.0'

Installation with Carthage

To integrate into your Xcode project using Carthage, specify it in your Cartfile:

github "ChangbaDevs/KTVPageViewController" ~> 1.0.0

Run carthage update to build the framework and drag the built KTVPageViewController.framework into your Xcode project.

Usage

KTVPageViewController is meant to be subclassed, like you would normally do with UITableViewController.

dataSource

@protocol KTVPageViewControllerDataSource <NSObject>
@required
- (NSInteger)numberOfItemsInPageViewController:(KTVPageViewController *)controller;
- (NSString *)pageViewController:(KTVPageViewController *)controller scrollViewKeyPathAtIndex:(NSInteger)index;
- (UIViewController *)pageViewController:(KTVPageViewController *)controller viewControllerAtIndex:(NSInteger)index;

@optional
- (BOOL)isHideNavigationBar:(KTVPageViewController *)controller;
- (UIView *)headViewOfpageViewController:(KTVPageViewController *)controller;
- (UIViewController *)headViewControllerOfpageViewController:(KTVPageViewController *)controller;
- (UIView<KTVHorizontalScrollSegmentedControlProtoclol> *)segmentControlOfpageViewController:(KTVPageViewController *)controller;
@end

delegate

@protocol KTVPageViewControllerDelegate <NSObject>
@optional
- (void)showingChildViewControllerDidChange;
- (void)showingChildViewControllerWillChangeFromIndex:(NSUInteger)fromIndex toIndex:(NSUInteger)toIndex;
@end

License

KTVPageViewController is released under the MIT license.

Related articles

Latest podspec

{
    "name": "KTVPageViewController",
    "version": "1.0.0",
    "summary": "A horizontal scroll view controller.",
    "homepage": "https://github.com/ChangbaDevs/KTVPageViewController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Single": "[email protected]"
    },
    "social_media_url": "https://weibo.com/3118550737",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ChangbaDevs/KTVPageViewController.git",
        "tag": "1.0.0"
    },
    "source_files": "KTVPageViewController/*.{h,m}",
    "public_header_files": "KTVPageViewController/*.h",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This