Latest 1.0.0
Homepage https://github.com/antoniocasero/ACPButton
License MIT
Platforms ios 5.0, requires ARC
Authors

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.

Instalation

From CocoaPods

pod `ACPButton`

From source

Clone the repository

[$ git clone [email protected]:antoniocasero/ACPButton.git]()

Or just drag this class to your project and import ACPButton to your viewcontroller.

Implementing

In the storyboard or XIB file, select your button and change the button class to ACPButton

Then, on viewDidLoad you can 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;
  • - (void) setGlowHighlightedState:(BOOL)glowOption;

Compatibility

  • Supports ARC. If you want to use it in a project without ARC, mark ACPButton.m with the linker flag-fobjc-arc.
  • Compatible with iOS5+.

License

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

Bitdeli Badge

Latest podspec

{
    "name": "ACPButton",
    "version": "1.0.0",
    "summary": "UIButton subclass to easily add custom buttons to your iOS app.",
    "homepage": "https://github.com/antoniocasero/ACPButton",
    "screenshots": "https://github.com/antoniocasero/ACPButton/blob/master/Screenshot1.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Antonio Casero": "[email protected]"
    },
    "source": {
        "git": "https://github.com/antoniocasero/ACPButton.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source_files": "ACPButton.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This