Latest 0.2.5
Homepage https://github.com/giuseppenucifora/GradientButton
License MIT
Platforms ios 7.0, requires ARC
Dependencies PureLayout, RZDataBinding
Frameworks QuartzCore
Authors

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

Usage

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

Requirements

Installation

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

pod "GradientButton"

GradientButton *button = [[GradientButton alloc] initWithFrame:CGRectMake(0, 0, 200, 50)];
;
;
 forState:UIControlStateNormal];
,[UIColor blueColor]] startPoint:CGPointMake(0, 0)];

[self.view addSubview:button];

GradientButton *autoLayoutButton = [GradientButton newAutoLayoutView];

[autoLayoutButton setTitle:@"Autolayout Button" forState:UIControlStateNormal];
[autoLayoutButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[autoLayoutButton setbackgroundLayerWithColors:@[[UIColor redColor],[UIColor greenColor],[UIColor whiteColor]] startPoint:CGPointMake(0, 0)];

[self.view addSubview:autoLayoutButton];

Author

Giuseppe Nucifora, [email protected]

License

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

Latest podspec

{
    "name": "GradientButton",
    "version": "0.2.5",
    "summary": "GradientButton is a UIBUtton subclassing with gradient support",
    "homepage": "https://github.com/giuseppenucifora/GradientButton",
    "license": "MIT",
    "authors": {
        "Giuseppe Nucifora": "[email protected]"
    },
    "source": {
        "git": "https://github.com/giuseppenucifora/GradientButton.git",
        "tag": "0.2.5"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "GradientButton": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": "QuartzCore",
    "dependencies": {
        "PureLayout": [],
        "RZDataBinding": []
    }
}

Pin It on Pinterest

Share This