<commit_before># IAElegantSheet

Another UIActionSheet but more elegant. Elegant to code and elegant to see. Using Roboto Condensed as default font. 

## Urgh, another block based UIActionSheet?
Yes! :) We can't get enough of block based handler for replacing default UIKit. I've built it for my current project and I want to learn how to built default action sheet around block handlers.

Currently still WIP though.


## Requirements

- iOS 6.0


## Usage

Import the header, create sheet, add buttons, add handler and show it :

````objc
#import "IAElegantSheet.h"


IAElegantSheet *elegantSheet = [IAElegantSheet 
elegantSheetWithTitle:@"How awesome you are?"];
[elegantSheet addButtonsWithTitle:@"Awesome" block:^{
		[you setAwesomeness:5];
}];
[elegantSheet addButtonsWithTitle:@"Awesomer" block:^{
		[you setAwesomeness:8];
}];
[elegantSheet addButtonsWithTitle:@"Awesomest" block:^{
		[you setAwesomeness:10];
}];
[elegantSheet setCancelButtonWithTitle:@"Nevermind!" block:nil];
[elegantSheet showInView:self.view];
````

## License

IAElegantSheet is provided under the MIT license.  See LICENSE for specifics.

## Attribution

Created as part of the Objective-C Hackathon on June 29th, 2013.<commit_msg>adding screenshots<commit_after># IAElegantSheet

Another UIActionSheet but more elegant. Elegant to code and elegant to see. Using Roboto Condensed as default font. 

## Urgh, another block based UIActionSheet?
Yes! :) We can't get enough of block based handler for replacing default UIKit. I've built it for my current project and I want to learn how to built default action sheet around block handlers.

Currently still WIP though.

## Preview
![image](https://dl.dropboxusercontent.com/u/10627916/elegantsheet-portrait.png)
![image](https://dl.dropboxusercontent.com/u/10627916/elegantsheet-landscape.png)

## Requirements

- iOS 6.0


## Usage

Import the header, create sheet, add buttons, add handler and show it :

````objc
#import "IAElegantSheet.h"


IAElegantSheet *elegantSheet = [IAElegantSheet 
elegantSheetWithTitle:@"Elegant Sheet"];
[elegantSheet addButtonsWithTitle:@"Elegant to code" block:^{
		code.isElegant = YES;
}];
[elegantSheet addButtonsWithTitle:@"Elegant to see" block:^{
		sheet.isElegant = YES;
}];
[elegantSheet addButtonsWithTitle:@"Custom font by default" block:^{
		font = @"Roboto";
}];
[elegantSheet setCancelButtonWithTitle:@"Thanks!" block:nil];
[elegantSheet showInView:self.view];
````

## License

IAElegantSheet is provided under the MIT license.  See LICENSE for specifics.

## Attribution

Created as part of the Objective-C Hackathon on June 29th, 2013.
{'fraction_non_alphanumeric': 0.10260336906584992, 'fraction_numerical': 0.013782542113323124, 'mean_word_length': 5.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1284957', 'n_tokens_mistral': 907, 'n_tokens_neox': 823, 'n_words': 274}