Latest 1.2.0
Homepage https://github.com/LeonLeeboy/LBPageView
License MIT
Platforms ios 8.0
Frameworks UIKit, Foundation
Authors

辛辛苦苦点进来,~留个star吧~

  • demo
    it support autoLayout , code etc.
//auto layout and frame code both of them are ok!
NSArray *pageNamesArray = @[@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController"];
LBHeaderPageView *headerPageView = [LBHeaderPageView headerPageViewWithClassNamesArray:pageNamesArray titlesArray:@[@"首页",@"娱乐",@"体育",@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"10",@"11"]];
[self.view addSubview:headerPageView];
[headerPageView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.mas_equalTo(10);
make.right.mas_equalTo(-10);
make.top.mas_equalTo(100);
make.bottom.mas_equalTo(-50);
}];

NSArray *pageNamesArray = @[@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController"];
LBHeaderPageView *headerPageView = [LBHeaderPageView headerPageViewWithClassNamesArray:pageNamesArray titlesArray:@[@"首页",@"娱乐",@"体育",@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"10",@"11"]];
[self.view addSubview:headerPageView];
headerPageView.frame = CGRectMake(0, 74, [UIScreen mainScreen].bounds.size.width , 200);

NSArray *pageNamesArray2 = @[@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController",@"UIViewController"];
LBHeaderPageView *headerPageView2 = [LBHeaderPageView headerPageViewWithClassNamesArray:pageNamesArray2 titlesArray:@[@"首页",@"娱乐",@"体育",@"1",@"2",@"3",@"4",@"5",@"6",@"7",@"8",@"9",@"10",@"11"]];
headerPageView2.lineWidthIsNeedAutoChange = YES;
[self.view addSubview:headerPageView2];
headerPageView2.frame = CGRectMake(0, headerPageView.LB_y + headerPageView.LB_height + 10, [UIScreen mainScreen].bounds.size.width , 100);

CI Status
Version
License
Platform

Example

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

Requirements

Installation

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

pod 'LBPageView'

Author

[email protected], [email protected]

License

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

Latest podspec

{
    "name": "LBPageView",
    "version": "1.2.0",
    "summary": "slide view",
    "description": "TODO: slide view like u767eu601du4e0du5f97u5176u59d0 home",
    "homepage": "https://github.com/LeonLeeboy/LBPageView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/LeonLeeboy/LBPageView.git",
        "tag": "1.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LBPageView/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ]
}

Pin It on Pinterest

Share This