<commit_before>PPiAwesomeButton
================

UIButton category with new methods to setup a button with text + FontAwesome Icon.
<a href="eightfit://workouts/123">Open App</a>


### Updates

##### 28 -June-2014 - Cocoapods version - 1.3.7
- Updated demo project that didn't work due to UIView+Autolayout category

##### 26-March-2014 - Cocoapods version - 1.3.7
Added the feature to set the icon passing an UIImageView
```objc
-(void)setIconImageView:(UIImageView *)iconImageView;
```
Fixed issue related with vertical size of subviews

##### 25-March-2014 - Cocoapods version - 1.3.7
Added the possibility to set the icon in UIImage format. The way to do that is just using the methods:
```objc
+(UIAwesomeButton*)buttonWithType:(UIButtonType)type text:(NSString *)text icon:(NSString *)icon attributes:(NSDictionary *)attributes andIconPosition:(IconPosition)position;
-(id)initWithFrame:(CGRect)frame text:(NSString *)text iconImage:(UIImage *)icon attributes:(NSDictionary *)attributes andIconPosition:(IconPosition)position;
```

## Features

* Background color can be setup dependending on the UIButton State thanks to its new method: ```-(void)setBackgroundColor:(UIColor*)color forUIControlState:(UIControlState)state;```
* UIButton can be initialized using following  ```+(UIButton*)buttonWithType:(UIButtonType)type text:(NSString*)text icon:(NSString*)icon textAttributes:(NSDictionary*)attributes andIconPosition:(IconPosition)position;```
```-(id)initWithFrame:(CGRect)frame text:(NSString*)text icon:(NSString*)icon textAttributes:(NSDictionary*)attributes andIconPosition:(IconPosition)position;``` where you can specify text/icon attributes using an NSDictionary ( you'll find more information in [Apple Documentation](http://developer.apple.com/library/ios/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/Reference/Reference.html). Moreover you can specify position of Icon inside UIButton thanks to parameter IconPosition (Left or Right ))
* Anytime you can change following properties of UIButton: 
**textAttributes-**```-(void)setTextAttributes:(NSDictionary*)attributes forUIControlState:(UIControlState)state;```
**backgroundColor-**```-(void)setBackgroundColor:(UIColor*)color forUIControlState:(UIControlState)state;```
**iconPosition-**```-(void)setIconPosition:(IconPosition)position;```
**buttonText-**```-(void)setButtonText:(NSString*)text;```
**buttonIcon-**```-(void)setButtonIcon:(NSString*)icon;```
**buttonRadius-**```-(void)setRadius:(CGFloat)radius;```
<commit_msg>Updated the Readme with the last changes<commit_after>PPiAwesomeButton
================

UIButton category with new methods to setup a button with text + FontAwesome Icon.
<a href="eightfit://workouts/123">Open App</a>


### Updates
##### 7th - November 2014 - Cocoapods version - 1.4.2
- Fixed a bug that caused users having empty buttons (when they tried to create the button with text but without icon)

##### 28th -June-2014 - Cocoapods version - 1.3.7
- Updated demo project that didn't work due to UIView+Autolayout category

##### 26th-March-2014 - Cocoapods version - 1.3.7
Added the feature to set the icon passing an UIImageView
```objc
-(void)setIconImageView:(UIImageView *)iconImageView;
```
Fixed issue related with vertical size of subviews

##### 25th-March-2014 - Cocoapods version - 1.3.7
Added the possibility to set the icon in UIImage format. The way to do that is just using the methods:
```objc
+(UIAwesomeButton*)buttonWithType:(UIButtonType)type text:(NSString *)text icon:(NSString *)icon attributes:(NSDictionary *)attributes andIconPosition:(IconPosition)position;
-(id)initWithFrame:(CGRect)frame text:(NSString *)text iconImage:(UIImage *)icon attributes:(NSDictionary *)attributes andIconPosition:(IconPosition)position;
```

## Features

* Background color can be setup dependending on the UIButton State thanks to its new method: ```-(void)setBackgroundColor:(UIColor*)color forUIControlState:(UIControlState)state;```
* UIButton can be initialized using following  ```+(UIButton*)buttonWithType:(UIButtonType)type text:(NSString*)text icon:(NSString*)icon textAttributes:(NSDictionary*)attributes andIconPosition:(IconPosition)position;```
```-(id)initWithFrame:(CGRect)frame text:(NSString*)text icon:(NSString*)icon textAttributes:(NSDictionary*)attributes andIconPosition:(IconPosition)position;``` where you can specify text/icon attributes using an NSDictionary ( you'll find more information in [Apple Documentation](http://developer.apple.com/library/ios/DOCUMENTATION/Cocoa/Reference/Foundation/Classes/NSAttributedString_Class/Reference/Reference.html). Moreover you can specify position of Icon inside UIButton thanks to parameter IconPosition (Left or Right ))
* Anytime you can change following properties of UIButton: 
**textAttributes-**```-(void)setTextAttributes:(NSDictionary*)attributes forUIControlState:(UIControlState)state;```
**backgroundColor-**```-(void)setBackgroundColor:(UIColor*)color forUIControlState:(UIControlState)state;```
**iconPosition-**```-(void)setIconPosition:(IconPosition)position;```
**buttonText-**```-(void)setButtonText:(NSString*)text;```
**buttonIcon-**```-(void)setButtonIcon:(NSString*)icon;```
**buttonRadius-**```-(void)setRadius:(CGFloat)radius;```

{'fraction_non_alphanumeric': 0.14104024297646164, 'fraction_numerical': 0.012908124525436599, 'mean_word_length': 8.006837606837607, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3151755', 'n_tokens_mistral': 1606, 'n_tokens_neox': 1404, 'n_words': 395}