<commit_before>#BPCompatibleAlertController
iOS 8 included the new UIAlertController which is a much needed upgrade upon the UIAlertView; however, if you're still supporting iOS 7, like most of us are, then you still need to use UIAlertViews.

`BPCompatibleAlertController` does its best to emulate the UIAlertController implementation while supporting both iOS 7 and 8.

##How to Use##
Code samples are provided in the demo project, but if you're familiar with the UIAlertController, then you'll find this easy:

First, intialize the `BPCompatibleAlertController`:
```
alertController = BPCompatibleAlertController(title: "My Title", message: "My Message", alertStyle: BPCompatibleAlertControllerStyle.Alert)
```

Start adding actions/buttons to your controller:
```
alertController.addAction(BPCompatibleAlertAction.defaultActionWithTitle("Default", handler: { (action) -> Void in
  // Do whatever callback you want in here
}))
```
If you want to specify another type of button, you can simply use the other two class functions: `BPCompatibleAlertAction.cancelActionWithTitle` and `BPCompatibleAlertAction.destructiveActionWithTitle`.

Then, when you're ready, present the alert controller. This is slightly different from UIAlertControllers but that's okay:
```
alertController.presentFrom(self, animated: true) { () -> Void in
  // Completion handler once everything is dismissed
}
```

##To Do##
This currently doesn't support the different types of UIAlertView styles (with various form inputs) but can easily be extended to do all of it.<commit_msg>update README.md to reflect proper naming<commit_after>#CompatibleAlertController
iOS 8 included the new UIAlertController which is a much needed upgrade upon the UIAlertView; however, if you're still supporting iOS 7, like most of us are, then you still need to use UIAlertViews.

`CompatibleAlertController` does its best to emulate the UIAlertController implementation while supporting both iOS 7 and 8.

##How to Use##
Code samples are provided in the demo project, but if you're familiar with the UIAlertController, then you'll find this easy:

First, intialize the `CompatibleAlertController`:
```
alertController = CompatibleAlertController(title: "My Title", message: "My Message", alertStyle: CompatibleAlertControllerStyle.Alert)
```

Start adding actions/buttons to your controller:
```
alertController.addAction(CompatibleAlertAction.defaultActionWithTitle("Default", handler: { (action) -> Void in
  // Do whatever callback you want in here
}))
```
If you want to specify another type of button, you can simply use the other two class functions: `CompatibleAlertAction.cancelActionWithTitle` and `CompatibleAlertAction.destructiveActionWithTitle`.

Then, when you're ready, present the alert controller. This is slightly different from UIAlertControllers but that's okay:
```
alertController.presentFrom(viewController, animated: true) { () -> Void in
  // Completion handler once everything is dismissed
}
```

###Objective-C Support###
The `CompatibleAlertController` and `CompatibleAlertAction` both have the "BP" prefix when using the library in Objective-C.

##To Do##
1. `CompatibleAlertController` currently doesn't support the different types of UIAlertView styles (with various form inputs) but can easily be extended to do all of it.
2. You need to retain the `CompatibleAlertController` in iOS 7 otherwise when selecting a button from the `UIAlertView` you'll get an exception.
3. Probably a lot more! PR's are welcome.
{'fraction_non_alphanumeric': 0.07316376107459274, 'fraction_numerical': 0.003429551300371535, 'mean_word_length': 5.862745098039215, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7601000', 'n_tokens_mistral': 903, 'n_tokens_neox': 853, 'n_words': 412}