Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (21 sloc) 855 Bytes
//
// PSAlertView.h
//
// Created by Peter Steinberger on 17.03.10.
// Loosely based on Landon Fullers "Using Blocks", Plausible Labs Cooperative.
// http://landonf.bikemonkey.org/code/iphone/Using_Blocks_1.20090704.html
//
@interface PSAlertView : NSObject <UIAlertViewDelegate> {
@private
UIAlertView *view_;
NSMutableArray *blocks_;
}
+ (PSAlertView *)alertWithTitle:(NSString *)title;
+ (PSAlertView *)alertWithTitle:(NSString *)title message:(NSString *)message;
- (id)initWithTitle:(NSString *)title message:(NSString *)message;
- (void)setCancelButtonWithTitle:(NSString *)title block:(void (^)())block;
- (void)addButtonWithTitle:(NSString *)title block:(void (^)())block;
- (void)show;
- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated;
@property (nonatomic, retain) UIAlertView *alertView;
@end