realmacsoftware/RMErrorRecoveryAttempter — pull request #2 by akashivskyy (2013-03-23 15:17:44+00:00)
Title: Added the ability to choose the completion method

Sometimes developers have to use other `UIAlertViewDelegate` methods, such as `-alertView:didDismissWithButtonIndex:` for better user experience.

The ability to choose the completion method in `_RMAlertViewDelegate` would be a great solution.

I added an enum (`RMErrorRecoveryPresentedErrorCompletionMethod`), which has three values:

- RMErrorRecoveryPresentedErrorCompletionMethodClickedButton
- RMErrorRecoveryPresentedErrorCompletionMethodWillDismiss
- RMErrorRecoveryPresentedErrorCompletionMethodDidDismiss

I also added a new method in `@interface UIResponder (RMErrorRecovery)`:

- (void)rm_presentError:(NSError *)error completionHandler:(void (^)(BOOL recovered))completionHandler completionMethod:(RMErrorRecoveryPresentedErrorCompletionMethod)competionMethod;

The default value of `completionMethod` is still `RMErrorReco...ClickedButton`, so it is compatible with the old version.

I hope you'll find my pull request useful. :)