Skip to content

Commit

Permalink
[Issue #1379] Adding missing code macros for iOS 6 compatibility in U…
Browse files Browse the repository at this point in the history
…IAlertView category
  • Loading branch information
mattt committed Sep 29, 2013
1 parent 7f23efd commit 0604cfd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UIKit+AFNetworking/UIAlertView+AFNetworking.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
@param task The session task.
@param delegate The alert view delegate.
*/
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
+ (void)showAlertViewForTaskWithErrorOnCompletion:(NSURLSessionTask *)task
delegate:(id)delegate;
#endif

/**
Shows an alert view with the error of the specified session task, if any, with a custom cancel button title and other button titles.
Expand All @@ -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`.
*/
#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000
+ (void)showAlertViewForTaskWithErrorOnCompletion:(NSURLSessionTask *)task
delegate:(id)delegate
cancelButtonTitle:(NSString *)cancelButtonTitle
otherButtonTitles:(NSString *)otherButtonTitles, ... NS_REQUIRES_NIL_TERMINATION;
#endif

///------------------------------------------
/// @name Showing Alert for Request Operation
Expand Down

0 comments on commit 0604cfd

Please sign in to comment.