CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

TBTopPagesController 0.1.4

TBTopPagesController 0.1.4

Maintained by tongbin.



TBTopPagesController

CI Status Version License Platform

Perf

Example

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

Not View . For ViewControllers

GIF

Requirements

This library requires iOS 9.0+ and Xcode 8.0+.

Installation

Installation with CocoaPods

pod 'TBTopPagesController'

Manually

TBSegmentControl.h
TBSegmentControl.m
TBTopMainController.h
TBTopMainController.m

Copy Some specific class file to your projec

Usage

    TBTopMainController *vc = [[TBTopMainController alloc] init];
    TBAViewController *allList = [[TBAViewController alloc] init];
    TBBViewController *meList = [[TBBViewController alloc] init];
    TBCViewController *cCV = [[TBCViewController alloc] init];
    
    vc.segmentBgColor = [UIColor whiteColor];
    vc.indicatorViewColor = TBColorFromRGB(0xf9dc4a);
    vc.titleColor = TBColorFromRGB(0x999999);
    vc.titleSelectColor = TBColorFromRGB(0x333333);
    [vc setTitles:@[@"精选",@"发现",@"好友圈"]];
    [vc setViewControllers:@[allList, meList,cCV]];

最后可以选择 怎么样展示设置好的viewController

Author

[email protected],[email protected]

License

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