forked from jamztang/JTRevealSidebarDemo
/
JTTableViewCellModal.h
55 lines (39 loc) · 1.33 KB
/
JTTableViewCellModal.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* This file is part of the JTRevealSidebar package.
* (c) James Tang <mystcolor@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
#import <Foundation/Foundation.h>
@protocol JTTableViewCellModal <NSObject>
- (NSString *)title;
@end
@interface JTTableViewCellModal : NSObject <JTTableViewCellModal>
@property (nonatomic, copy) NSString *title;
+ (id)modalWithTitle:(NSString *)title;
@end
@interface NSString (JTTableViewCellModal) <JTTableViewCellModal>
@end
#pragma mark -
@protocol JTTableViewCellModalSimpleType <NSObject, JTTableViewCellModal>
- (NSInteger)type;
@end
@interface JTTableViewCellModalSimpleType : JTTableViewCellModal <JTTableViewCellModalSimpleType>
@property (nonatomic, assign) NSInteger type;
+ (id)modalWithTitle:(NSString *)title type:(NSInteger)type;
@end
#pragma mark -
@protocol JTTableViewCellModalLoadingIndicator <NSObject>
@end
@interface JTTableViewCellModalLoadingIndicator : NSObject <JTTableViewCellModalLoadingIndicator>
+ (id)modal;
@end
#pragma mark -
@protocol JTTableViewCellModalCustom <NSObject>
- (NSDictionary *)info;
@end
@interface JTTableViewCellModalCustom : NSObject <JTTableViewCellModalCustom>
@property (nonatomic, retain) NSDictionary *info;
+ (id)modalWithInfo:(NSDictionary *)info;
@end