Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 45 lines (32 sloc) 1.269 kb
// BlockAlertView.h
#import <UIKit/UIKit.h>
@interface BlockAlertView : NSObject {
UIView *_view;
NSMutableArray *_blocks;
CGFloat _height;
NSString *_title;
NSString *_message;
BOOL _shown;
BOOL _cancelBounce;
+ (BlockAlertView *)alertWithTitle:(NSString *)title message:(NSString *)message;
+ (void)showInfoAlertWithTitle:(NSString *)title message:(NSString *)message;
+ (void)showErrorAlert:(NSError *)error;
- (id)initWithTitle:(NSString *)title message:(NSString *)message;
- (void)setDestructiveButtonWithTitle:(NSString *)title block:(void (^)())block;
- (void)setCancelButtonWithTitle:(NSString *)title block:(void (^)())block;
- (void)addButtonWithTitle:(NSString *)title block:(void (^)())block;
// Images should be named in the form "alert-IDENTIFIER-button.png"
- (void)addButtonWithTitle:(NSString *)title imageIdentifier:(NSString*)identifier block:(void (^)())block;
- (void)addComponents:(CGRect)frame;
- (void)show;
- (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated;
- (void)setupDisplay;
@property (nonatomic, retain) UIImage *backgroundImage;
@property (nonatomic, readonly) UIView *view;
@property (nonatomic, readwrite) BOOL vignetteBackground;
Jump to Line
Something went wrong with that request. Please try again.