<commit_before>TBAlertController
=================

`UIAlertController`, `UIAlertView`, and `UIActionSheet` unified for developers who want to support iOS 7 and 8.

Installation:
=============
Add `TBAlertController.h` and `TBAlertController.m` to your project and import `TBAlertController.h`. Cocoapods support coming soon!

About:
=============
`TBAlertController` tries to be as much of a drop-in replacement for the iOS 7 classes as possible, and adds a simpler interface for iOS 8 by allowing you to directly add buttons instead of first creating action objects. This feature is coming soon, however, to remain consitent with `UIAlertController`'s interface.

The only major difference for iOS 7 is that `TBAlertController` does away with delegates in favor of block and target-selector style actions. Delegate support will not be added, since this project is directed at developers who want to minimize code involving action sheets and alert views on iOS 7 and 8. It is possible to use the same code for both platforms; `TBAlertController` takes care of the rest for you.

Examples:

            TBAlertController *alert = [[TBAlertController alloc] initWithStyle:TBAlertControllerStyleActionSheet];
            alert.title   = @"Alert";
            alert.message = @"This is a message!";
            [alert addOtherButtonWithTitle:@"OK" buttonAction:^(NSArray *strings) { [self pressedOK]; }];
            [alert addOtherButtonWithTitle:@"Delete" target:self action:@selector(selfDestruct)];
            [alert setCancelButtonWithTitle:@"Cancel"];
            alert.destructiveButtonIndex = 1;

This will create an action sheet with the title `Alert` and a message, as well as three buttons: `OK` with a block style action, `Delete` with a target-selector style action (as well as being the "destructive" button), and a `Cancel` button which only dismisses the alert. The cancel button will always appear last in the list of buttons if set using one of the `setCancelButton...` methods.

Display an alert with `showFromViewController:` or `showFromViewController:animated:completion:`.

Actions can be added to any button, either block or target-selector style. Destructive buttons can only be added when using `TBAlertControllerStyleActionSheet` on iOS 7. Buttons can also be added with just a title.

The target-selector style actions also support passing a single parameter, like `performSelector:withObject:`.
<commit_msg>``` obj-c<commit_after>TBAlertController
=================

`UIAlertController`, `UIAlertView`, and `UIActionSheet` unified for developers who want to support iOS 7 and 8.

Installation:
=============
Add `TBAlertController.h` and `TBAlertController.m` to your project and import `TBAlertController.h`. Cocoapods support coming soon!

About:
=============
`TBAlertController` tries to be as much of a drop-in replacement for the iOS 7 classes as possible, and adds a simpler interface for iOS 8 by allowing you to directly add buttons instead of first creating action objects. This feature is coming soon, however, to remain consitent with `UIAlertController`'s interface.

The only major difference for iOS 7 is that `TBAlertController` does away with delegates in favor of block and target-selector style actions. Delegate support will not be added, since this project is directed at developers who want to minimize code involving action sheets and alert views on iOS 7 and 8. It is possible to use the same code for both platforms; `TBAlertController` takes care of the rest for you.

Examples:
            ``` obj-c
            TBAlertController *alert = [[TBAlertController alloc] initWithStyle:TBAlertControllerStyleActionSheet];
            alert.title   = @"Alert";
            alert.message = @"This is a message!";
            [alert addOtherButtonWithTitle:@"OK" buttonAction:^(NSArray *strings) { [self pressedOK]; }];
            [alert addOtherButtonWithTitle:@"Delete" target:self action:@selector(selfDestruct)];
            [alert setCancelButtonWithTitle:@"Cancel"];
            alert.destructiveButtonIndex = 1;
            ```
            
This will create an action sheet with the title `Alert` and a message, as well as three buttons: `OK` with a block style action, `Delete` with a target-selector style action (as well as being the "destructive" button), and a `Cancel` button which only dismisses the alert. The cancel button will always appear last in the list of buttons if set using one of the `setCancelButton...` methods.

Display an alert with `showFromViewController:` or `showFromViewController:animated:completion:`.

Actions can be added to any button, either block or target-selector style. Destructive buttons can only be added when using `TBAlertControllerStyleActionSheet` on iOS 7. Buttons can also be added with just a title.

The target-selector style actions also support passing a single parameter, like `performSelector:withObject:`.

{'fraction_non_alphanumeric': 0.08243435782617545, 'fraction_numerical': 0.0036637492367189092, 'mean_word_length': 4.44789356984479, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1709823', 'n_tokens_mistral': 1246, 'n_tokens_neox': 1157, 'n_words': 596}