CJSegmentController 0.3.0

CJSegmentController 0.3.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Nov 2016

Maintained by CJ.



  • By
  • Ji zhongyi

Description

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.

Example

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

Usage

  • 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 like TestVCTwo in Demo.

Installation

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

pod "CJSegmentController"

Author

Ji zhongyi, [email protected]

License

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

Demo

CJSegmentControllerDemo