Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[Issue #1379] Adding missing code macros for iOS 6 compatibility in U…

…IAlertView category
  • Loading branch information...
commit 0604cfd6bbc13fb6e0f5f73c5341ce4387bfe5a3 1 parent 7f23efd
@mattt mattt authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 UIKit+AFNetworking/UIAlertView+AFNetworking.h
4 UIKit+AFNetworking/UIAlertView+AFNetworking.h
@@ -45,8 +45,10 @@
@param task The session task.
@param delegate The alert view delegate.
+ (void)showAlertViewForTaskWithErrorOnCompletion:(NSURLSessionTask *)task
Shows an alert view with the error of the specified session task, if any, with a custom cancel button title and other button titles.
@@ -56,10 +58,12 @@
@param cancelButtonTitle The title of the cancel button or nil if there is no cancel button. Using this argument is equivalent to setting the cancel button index to the value returned by invoking addButtonWithTitle: specifying this title.
@param otherButtonTitles The title of another button. Using this argument is equivalent to invoking addButtonWithTitle: with this title to add more buttons. Too many buttons can cause the alert view to scroll. For guidelines on the best ways to use an alert in an app, see "Temporary Views". Titles of additional buttons to add to the receiver, terminated with `nil`.
+ (void)showAlertViewForTaskWithErrorOnCompletion:(NSURLSessionTask *)task
cancelButtonTitle:(NSString *)cancelButtonTitle
otherButtonTitles:(NSString *)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION;
/// @name Showing Alert for Request Operation

0 comments on commit 0604cfd

Please sign in to comment.
Something went wrong with that request. Please try again.