-
Notifications
You must be signed in to change notification settings - Fork 1
/
TLActionSheetController.h
39 lines (28 loc) · 1.24 KB
/
TLActionSheetController.h
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
35
36
37
38
39
//
// TLActionSheetController.h
// TLCommon
//
// Created by Joshua Bleecher Snyder on 11/10/09.
//
#import <Foundation/Foundation.h>
@class TLActionSheet;
@interface TLActionSheetController : NSObject<UIActionSheetDelegate> {
@private
TLActionSheet *actionSheet;
NSMutableArray *invocations;
}
- (id)initWithTitle:(NSString *)aTitle;
- (void)addButtonWithTitle:(NSString *)aTitle invocation:(NSInvocation *)anInvocation;
- (void)addButtonWithTitle:(NSString *)aTitle target:(id)aTarget action:(SEL)anAction;
- (void)addCancelButton;
- (void)addCancelButtonWithInvocation:(NSInvocation *)anInvocation;
- (void)addCancelButtonWithTarget:(id)aTarget action:(SEL)anAction;
- (void)addCancelButtonWithTitle:(NSString *)aTitle invocation:(NSInvocation *)anInvocation;
- (void)addCancelButtonWithTitle:(NSString *)aTitle target:(id)aTarget action:(SEL)anAction;
- (void)addDestructiveButtonWithTitle:(NSString *)aTitle invocation:(NSInvocation *)anInvocation;
- (void)addDestructiveButtonWithTitle:(NSString *)aTitle target:(id)aTarget action:(SEL)anAction;
- (void)showInView:(UIView *)view;
- (void)showFromTabBar:(UITabBar *)tabBar;
- (void)showFromToolbar:(UIToolbar *)toolbar;
@property(nonatomic, retain, readonly) TLActionSheet *actionSheet;
@end