forked from jivadevoe/UIAlertView-Blocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIAlertView+Blocks.h
22 lines (15 loc) · 878 Bytes
/
UIAlertView+Blocks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//
// UIAlertView+Blocks.h
// Shibui
//
// Created by Jiva DeVoe on 12/28/10.
// Copyright 2010 Random Ideas, LLC. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "RIButtonItem.h"
@interface UIAlertView (Blocks)
+ (id)alertViewWithTitle:(NSString *)inTitle message:(NSString *)inMessage otherButtonTitle:(NSString *)otherButtonTitle otherButtonAction:(void(^)())otherButtonAction;
+ (id)alertViewWithTitle:(NSString *)inTitle message:(NSString *)inMessage cancelButtonTitle:(NSString *)cancelButtonTitle otherButtonTitle:(NSString *)otherButtonTitle otherButtonAction:(void(^)())otherButtonAction;
-(id)initWithTitle:(NSString *)inTitle message:(NSString *)inMessage cancelButtonItem:(RIButtonItem *)inCancelButtonItem otherButtonItems:(RIButtonItem *)inOtherButtonItems, ... NS_REQUIRES_NIL_TERMINATION;
- (NSInteger)addButtonItem:(RIButtonItem *)item;
@end