TBTopPagesController
Perf
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Not View . For ViewControllers
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.