forked from cheesemaker/toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUUAlert.h
More file actions
executable file
·24 lines (19 loc) · 1.11 KB
/
UUAlert.h
File metadata and controls
executable file
·24 lines (19 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
// UUAlert.h
// Useful Utilities - UIAlertView extensions
//
// License:
// You are free to use this code for whatever purposes you desire. The only requirement is that you smile everytime you use it.
//
// Contact: @cheesemaker or jon@silverpine.com
#import <UIKit/UIKit.h>
@interface UUAlertViewController : NSObject
//Show a simple one button alert
+ (void) uuShowAlertWithTitle:(NSString*)alertTitle
message:(NSString*)alertMessage
buttonTitle:(NSString*)buttonTitle
completionHandler:(void (^)(NSInteger buttonIndex))completionHandler;
+ (void) uuShowOKCancelAlert:(NSString *)title message:(NSString *)message completionHandler:(void (^)(NSInteger buttonIndex))completionHandler;
+ (void) uuShowOneButtonAlert:(NSString *)title message:(NSString *)message button:(NSString*)button completionHandler:(void (^)(NSInteger buttonIndex))completionHandler;
+ (void) uuShowTwoButtonAlert:(NSString *)title message:(NSString *)message buttonOne:(NSString*)buttonOne buttonTwo:(NSString*)buttonTwo completionHandler:(void (^)(NSInteger buttonIndex))completionHandler;
@end