<commit_before>DoAlertView
===========

An replacement for UIAlertView : block-based, customizable theme, easy to use with image or map

## Preview

# with title, with yes button, with no button
![DoAlertView Screenshot](https://raw.github.com/donobono/DoAlertView/master/p1.png)

# without title, with yes button, with no button, with an image, destructive mode
![DoAlertView Screenshot](https://raw.github.com/donobono/DoAlertView/master/p2.png)

# without title, with only yes button, with a map
![DoAlertView Screenshot](https://raw.github.com/donobono/DoAlertView/master/p3.png)


## Requirements
- iOS 7.0 and greater
- ARC


## Examples

**Code:**

```objc

_vAlert = [[DoAlertView alloc] init];
// required
_vAlert.nAnimationType = _sgType.selectedSegmentIndex;	// there are 5 type of animation

// optional
_vAlert.dRound = 2.0;
_vAlert.bDestructive = NO;	// for destructive mode

// with image
_vAlert.iImage = [UIImage imageNamed:@"pic1.jpg"];
_vAlert.nContentMode = DoContentImage;

// with map
_vAlert.nContentMode = DoContentMap;
_vAlert.dLocation = @{@"latitude" : @(37.78275123), @"longitude" : @(-122.40416442), @"altitude" : @200};

// launch with title, yes button and no button
[_vAlert doYesNo:@"Title"
            body:@"Here’s a snippet of code that illustrates how the whole process works"
             yes:^(DoAlertView *alertView) {
              
                 NSLog(@"Yeeeeeeeeeeeees!!!!");

             } no:^(DoAlertView *alertView) {

                 NSLog(@"Noooooooooooooo!!!!");
               
             }];


// launch with only yes button
_vAlert.bDestructive = YES;
[_vAlert doYes:@"Here’s a snippet of code that illustrates how the whole process works"
           yes:^(DoAlertView *alertView) {
               
               NSLog(@"Yeeeeeeeeeeeees!!!!");
               
           }];

// launch with timer, without any buttons
[_vAlert doAlert:@"Please wait a second!"
            body:@"Getting great data from server..."
        duration:0.0
            done:^(DoAlertView *alertView) {
                
                NSLog(@"Done!!!!");
                
            }];

```
<commit_msg>edit read me<commit_after>DoAlertView
===========

An replacement for UIAlertView : block-based, customizable theme, easy to use with image or map

## Preview

### with title, with yes button, with no button
![DoAlertView Screenshot](https://raw.github.com/donobono/DoAlertView/master/p1.png)

### without title, with yes button, with no button, with an image, destructive mode
![DoAlertView Screenshot](https://raw.github.com/donobono/DoAlertView/master/p2.png)

### without title, with only yes button, with a map
![DoAlertView Screenshot](https://raw.github.com/donobono/DoAlertView/master/p3.png)


## Requirements
- iOS 7.0 and greater
- ARC


## Examples

**Code:**

```objc

_vAlert = [[DoAlertView alloc] init];
// required
_vAlert.nAnimationType = _sgType.selectedSegmentIndex;	// there are 5 type of animation

// optional
_vAlert.dRound = 2.0;
_vAlert.bDestructive = NO;	// for destructive mode

// with image
_vAlert.iImage = [UIImage imageNamed:@"pic1.jpg"];
_vAlert.nContentMode = DoContentImage;

// with map
_vAlert.nContentMode = DoContentMap;
_vAlert.dLocation = @{@"latitude" : @(37.78275123), @"longitude" : @(-122.40416442), @"altitude" : @200};

// launch with title, yes button and no button
[_vAlert doYesNo:@"Title"
            body:@"Here’s a snippet of code that illustrates how the whole process works"
             yes:^(DoAlertView *alertView) {
              
                 NSLog(@"Yeeeeeeeeeeeees!!!!");

             } no:^(DoAlertView *alertView) {

                 NSLog(@"Noooooooooooooo!!!!");
               
             }];


// launch with only yes button
_vAlert.bDestructive = YES;
[_vAlert doYes:@"Here’s a snippet of code that illustrates how the whole process works"
           yes:^(DoAlertView *alertView) {
               
               NSLog(@"Yeeeeeeeeeeeees!!!!");
               
           }];

// launch with timer, without any buttons
[_vAlert doAlert:@"Please wait a second!"
            body:@"Getting great data from server..."
        duration:0.0
            done:^(DoAlertView *alertView) {
                
                NSLog(@"Done!!!!");
                
            }];

```

```objc
// customizable theme
#define DO_TITLE_BOX                DO_RGB(218, 247, 244)
#define DO_NORMAL_BOX               DO_RGB(255, 255, 255)
#define DO_BUTTON_BOX               DO_RGB(13, 52, 85)
#define DO_DESTRUCTIVE_BOX          DO_RGB(236, 90, 73)
#define DO_TEXT_COLOR               DO_RGB(13, 52, 85)
#define DO_DESTRUCTIVE_TEXT_COLOR   DO_RGB(255, 255, 255)
#define DO_DIMMED_COLOR             DO_RGBA(0, 0, 0, 0.7)

#define DO_TEXT_FONT        [UIFont fontWithName:@"Avenir-Medium" size:14]
#define DO_BOLD_FONT        [UIFont fontWithName:@"Avenir-Heavy" size:14]

#define DO_LABEL_INSET      UIEdgeInsetsMake(10, 10, 10, 10)
#define DO_TITLE_INSET      UIEdgeInsetsMake(5, 10, 5, 10)
#define DO_VIEW_WIDTH       280

```

{'fraction_non_alphanumeric': 0.12962226640159047, 'fraction_numerical': 0.02823061630218688, 'mean_word_length': 2.737741456166419, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '5744054', 'n_tokens_mistral': 1761, 'n_tokens_neox': 1556, 'n_words': 408}