Latest 0.1.0
Homepage https://github.com/CorkiiOS/CKPagerComponent
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

Using

  • 首先导入CKPagingControllerComponent
  • 新建控制器继承CKPagingControllerComponent
  • 需要实现API
  • 子控制器数组
- (NSArray<UIViewController *> *)pagingControllerComponentChildViewControllers {

return @[[CKTestVC1 new],
[CKTestVC2 new],
[CKTestVC3 new],
[CKTestVC3 new],
[CKTestVC3 new],
[CKTestVC3 new],
[CKTestVC3 new],
[CKTestVC3 new],
[CKTestVC3 new]];
}
  • 选项卡标题数组
- (NSArray<NSString *> *)pagingControllerComponentSegmentTitles {

return @[@"热门",@"精华",@"你好",@"热门",@"精华",@"你好",@"热门",@"精华",@"你好"];
}
  • 选项卡位置frame
- (CGRect)pagingControllerComponentSegmentFrame {

return CGRectMake(0, 64, self.view.bounds.size.width, 35);
}
  • 子控制器view高度
- (CGFloat)pagingControllerComponentContainerViewHeight {

return self.view.bounds.size.height - 35 - 64;
}

Requirements

Installation

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

pod "CKPagerComponent"

Author

corkiios, [email protected]

License

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

Latest podspec

{
    "name": "CKPagerComponent",
    "version": "0.1.0",
    "summary": "CKPagerComponent.",
    "description": "CKPagerComponent.pageManager",
    "homepage": "https://github.com/CorkiiOS/CKPagerComponent",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "corkiios": "[email protected]"
    },
    "source": {
        "git": "https://github.com/CorkiiOS/CKPagerComponent.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "CKPagerComponent/Classes/**/*"
}

Pin It on Pinterest

Share This