<commit_before># 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.

![](Screenshot1.png)

You can have all your project buttons, centralized in one class, so at the end you could see changes, modifying this class.

## Instalation

Clone the repository

[*$ git clone <EMAIL>:antoniocasero/ACPButton.git*]()

Or just drag this class to your project. 


## Implementing

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

![](Screenshot2.png)

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;`


## 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.













<commit_msg>Update #3<commit_after># 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.

![](Screenshot1.png)

You can have all your project buttons, centralized in one class, so at the end you could see changes, modifying this class.

## Instalation

### From [CocoaPods][1]

	pod `ACPButton`

Clone the repository

[*$ git clone <EMAIL>: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 

![](Screenshot2.png)

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;`


## 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.















[1]:	http://www.cocoapods.org

[1]:	Screenshot1.png
[2]:	Screenshot2.png
{'fraction_non_alphanumeric': 0.09442475024170158, 'fraction_numerical': 0.004189494038027715, 'mean_word_length': 5.122287968441815, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7259178', 'n_tokens_mistral': 984, 'n_tokens_neox': 904, 'n_words': 353}