Latest 0.0.6
Homepage https://github.com/gprokopchuk/GPCustomSegment
License MIT
Platforms ios 8.0
Authors

Installation

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

pod "GPCustomSegment"

Example and Usage

    _switchSegment = [[GPCustomSegment alloc] initWithImages:@[@"image", @"image",@"image"]
                                          disabledImageColor:[UIColor lightGrayColor]
                                          selectedImageColor:[UIColor yellowColor]
                                           pressureViewColor:[UIColor redColor]
                                             backgroundColor:[UIColor whiteColor]
                                                 borderColor:[UIColor clearColor]
                                                    andFrame:CGRectMake(30, 50, 150, 50)];
    [_switchSegment addTarget:self
                           action:@selector(segmentedControlValueChanged:)
                 forControlEvents:UIControlEventValueChanged];

    [self.view addSubview:_switchSegment];

Author

George Prokopchuk, [email protected]

License

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

Latest podspec

{
    "name": "GPCustomSegment",
    "version": "0.0.6",
    "summary": "Custom segment with images",
    "description": "Nice segment with images. Just use.",
    "homepage": "https://github.com/gprokopchuk/GPCustomSegment",
    "screenshots": "https://raw.githubusercontent.com/gprokopchuk/Screenshots/master/gpcustomsegment.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "George Prokopchuk": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gprokopchuk/GPCustomSegment.git",
        "tag": "0.0.6"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "GPCustomSegment/GPCustomSegment/Classes/*.{h,m}"
}

Pin It on Pinterest

Share This