Giter Site home page Giter Site logo

acpbutton's Introduction

ACPButton

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

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;

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

acpbutton's People

Contributors

antoniocasero avatar bitdeli-chef avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.