Latest 0.1.0
Homepage https://github.com/wangweicheng7/PWSegmentedControl
License MIT
Platforms ios 7.0, requires ARC
Authors

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

Usage

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

For using.

    PWSegmentedControl *seg = [[PWSegmentedControl alloc] initWithItems:@[@"最好玩",@"个性化",@"最好玩",@"个性化"]];
    seg.layer.cornerRadius = 13;
    seg.layer.masksToBounds = YES;
    seg.tintView.layer.cornerRadius = 13;
    seg.tintColor = [UIColor purpleColor];
    seg.selectedSegmentIndex = 3;
    [seg itemDidSelected:^(NSUInteger index) {
        NSLog(@"%ld",index);
    }];
    self.navigationItem.titleView = seg;

Requirements

Installation

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

pod "PWSegmentedControl"

Author

Paul Wang, [email protected]

License

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

Latest podspec

{
    "name": "PWSegmentedControl",
    "version": "0.1.0",
    "summary": "A Animation SegmentedControl",
    "description": "u8fd9u662fu4e00u4e2au81eau5b9au4e49u7684SegmentedControlu63a7u4ef6uff0cu7ee7u627fu81eaUIViewu5b9eu73b0u4e86u5207u6362u65f6u7684u52a8u753bu6548u679c",
    "homepage": "https://github.com/wangweicheng7/PWSegmentedControl",
    "license": "MIT",
    "authors": {
        "Paul Wang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wangweicheng7/PWSegmentedControl.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/*.{h,m}",
    "resource_bundles": {
        "PWSegmentedControl": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This