-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPRPAlertView.h
More file actions
34 lines (28 loc) · 1.03 KB
/
Copy pathPRPAlertView.h
File metadata and controls
34 lines (28 loc) · 1.03 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
25
26
27
28
29
30
31
32
33
34
/***
* Excerpted from "iOS Recipes",
* published by The Pragmatic Bookshelf.
* Copyrights apply to this code. It may not be used to create training material,
* courses, books, articles, and the like. Contact us if you are in doubt.
* We make no guarantees that this code is fit for any purpose.
* Visit http://www.pragmaticprogrammer.com/titles/cdirec for more book information.
***/
//
// PRPAlertView.h
// PRPAlertView
//
// Created by Matt Drance on 1/24/11.
// Copyright 2011 Bookhouse Software LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef void(^PRPAlertBlock)(void);
@interface PRPAlertView : UIAlertView {}
+ (void)showWithTitle:(NSString *)title
message:(NSString *)message
buttonTitle:(NSString *)buttonTitle;
+ (void)showWithTitle:(NSString *)title
message:(NSString *)message
cancelTitle:(NSString *)cancelTitle
cancelBlock:(PRPAlertBlock)cancelBlock
otherTitle:(NSString *)otherTitle
otherBlock:(PRPAlertBlock)otherBlock;
@end