-
Notifications
You must be signed in to change notification settings - Fork 43
/
UIAlertView+UITableView.h
55 lines (44 loc) · 1.39 KB
/
UIAlertView+UITableView.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
//
// UIAlertView+UITableView.h
// IguanaGet
//
// Created by Sergio on 03/06/11.
// Copyright 2011 Sergio. All rights reserved.
//
#import <UIKit/UIKit.h>
@protocol AlertTableViewDelegate <NSObject>
- (void)didSelectRowAtIndex:(NSInteger)row
section:(NSInteger)section
withContext:(id)context
text:(NSString *)text
andItem:(NSMutableDictionary *)item
row:(int)rowSelected;
@end
@interface AlertTableView : UIAlertView <UITableViewDelegate, UITableViewDataSource>
{
UITableView *myTableView;
id<AlertTableViewDelegate> caller;
id context;
NSArray *data;
NSMutableDictionary *itemValue;
int sectionSelected;
int selectedRow;
int tableHeight;
}
- (id)initWithCaller:(id<AlertTableViewDelegate>)_caller
data:(NSArray*)_data
title:(NSString*)_title
context:(id)_context
dictionary:(NSMutableDictionary *)item
section:(int)section
row:(int)row;
@property(nonatomic, retain) id<AlertTableViewDelegate> caller;
@property(nonatomic, retain) id context;
@property(nonatomic, retain) NSArray *data;
@property(nonatomic, retain) NSMutableDictionary *itemValue;
@property(nonatomic) int sectionSelected;
@property(nonatomic) int selectedRow;
@end
@interface AlertTableView (HIDDEN)
- (void)prepare;
@end