TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2015 |
Maintained by Antonio Casero.
This extension of UIButton allow you to have full control of your project buttons from one class. This class give you the oportunity to create buttons completly image free, combining flat color, gradients, borders etc. You also can create easily buttons using resizable images.
You can have all your project buttons, centralized in one class, so at the end you could see changes, modifying this class.
pod `BButton`
Clone the repository
$ git clone [email protected]:antoniocasero/ACPButton.git
Or just drag this class to your project and import ACPButton
to your viewcontroller.
In the storyboard or XIB file, select your button and change the button class to ACPButton
Then, on viewDidLoad we set up the button depending of yor needs,
- (void) setStyleType:(ACPButtonType)style;
- (void) setFlatStyleType:(ACPButtonType)style;
- (void) setFlatStyle:(UIColor*)normal andHighlightedColor:(UIColor*)highlight;
- (void) setStyle:(UIColor*)topColor andBottomColor:(UIColor*)bottomColor;
- (void) setStyleWithImage:(NSString*)image highlightedImage:(NSString*)hImage disableImage:(NSString *)dImage andInsets:(UIEdgeInsets)insets;
ACPButton
is available under the MIT license. See the LICENSE file for more info.