GithubHelp home page GithubHelp logo

jzy476731162 / cjsegmentcontroller Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 1.44 MB

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 and each with different state. This pod is create For this Question.

License: MIT License

Ruby 0.97% Objective-C 89.52% Swift 1.44% Shell 8.07%

cjsegmentcontroller's Introduction

CJSegmentController

[![CI Status](http://img.shields.io/travis/Ji zhongyi/CJSegmentController.svg?style=flat)](https://travis-ci.org/Ji zhongyi/CJSegmentController) Version License Platform

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

cjsegmentcontroller's People

Stargazers

Carabineiro avatar

Watchers

James Cloos avatar Carabineiro avatar Zhongyi Ji avatar

Forkers

carabina

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.