-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathUTTableViewPListDataSource.h
54 lines (43 loc) · 1.83 KB
/
UTTableViewPListDataSource.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
//
// UTTableViewPListDataSource.h
// RingFinder
//
// Created by Danny Morrow on 10/29/10.
// Copyright 2010 unitytheory.com. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "UTTableViewTextFieldCell.h"
#import "UTTableViewMultiOptionCell.h"
#import "UTTableViewPhotoPickerCell.h"
#define kUTTableWidth 320
#define kUTSpacing 15
#define kUTMinLabelWidth 80
#define kUTMinValueWidth 35
#define kUTPaddingLeft 9
#define kUTPaddingRight 10
#define kTextFieldSpecifier @"PSTextFieldSpecifier"
#define kTextField @"PSTextField"
#define kMultiValueSpecifer @"PSMultiValueSpecifer"
#define kPhotoPicker @"PSPhotoPicker"
#define kHiddenSpecifier @"PSHiddenSpecifier"
@interface UTTableViewPListDataSource : NSObject <UITableViewDataSource>
{
NSString* _path;
NSMutableDictionary* _plistData;
}
@property (nonatomic, strong) NSString* path;
@property (nonatomic, strong) NSMutableDictionary* plistData;
@property (nonatomic, weak) id <UTTableViewCellDelegate> tableCellDelegate;
- (id) initWithPList:(NSString *)path;
- (void) parsePList;
- (NSDictionary *) dataAtIndexPath:(NSIndexPath *)indexPath;
- (NSDictionary *) groupAtIndex:(NSInteger)groupIndex;
- (NSArray *) groups;
- (NSArray *) fieldsInGroup:(NSInteger)groupIndex;
- (UIKeyboardType) keyboardFactory:(NSString*) keyboardType;
- (UITextAutocapitalizationType) capitalizationFactory:(NSString*) capitalizationType;
- (id) setDefaultValue:(NSDictionary*) dataModel data:(NSDictionary *) data;
- (UTTableViewTextFieldCell *) textFieldCellFactory:(UITableViewCellStyle) style;
- (UTTableViewMultiOptionCell *) multioptionCellFactory:(UITableViewCellStyle) style;
- (UTTableViewPhotoPickerCell *) photoPickerCellFactory:(UITableViewCellStyle) style;
@end