[![CI Status](http://img.shields.io/travis/Ji zhongyi/CJSegmentController.svg?style=flat)](https://travis-ci.org/Ji zhongyi/CJSegmentController)
As it named, CJSegmentController is a UIViewController with a segmentControl, you would meet a lot of trouble when this SegmentControl's subviews have different Bar button Item. This pod is create For this Question.
To run the example project, clone the repo, and run pod install
from the Example directory first.
- import < CJViewController >
- use
- (instancetype)initWithViewControllers:(NSArray *)viewControllers TintColor:(UIColor *)tintColor;
- if you want to add bar button in navigationBar, import the Category:
UIViewController+BarButtonItem
,and manage your barButton by your subViewController likeTestVCTwo
in Demo.
CJSegmentController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CJSegmentController"
Ji zhongyi, [email protected]
CJSegmentController is available under the MIT license. See the LICENSE file for more info.