2016-04-13 16:05:49 +02:00
2016-04-13 16:05:49 +02:00
2016-04-13 16:05:49 +02:00
2016-01-11 17:06:43 +01:00
2016-01-11 17:06:43 +01:00
2016-01-11 17:06:43 +01:00
2016-04-13 16:05:49 +02:00
2016-01-11 17:06:43 +01:00
2016-01-11 19:48:41 +01:00

GradientButton

[![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)];
[button setCenter:self.view.center];
[button setTitle:@"Normal Button" forState:UIControlStateNormal];
[button setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
[button setbackgroundLayerWithColors:@[[UIColor redColor],[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, me@giuseppenucifora.com

License

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

S
Description
No description provided
Readme MIT
304 KiB
0 Stars 1 Watchers 0 Forks
Languages
Objective-C 87.5%
Ruby 12.5%