11#import "EditorBaseController.h"
17NSString *TableCellIdentifierText =
@"cellIdText";
18NSString *TableCellIdentifierSecretText =
@"cellIdSecretText";
19NSString *TableCellIdentifierYesNo =
@"cellIdYesNo";
20NSString *TableCellIdentifierSelection =
@"cellIdSelection";
21NSString *TableCellIdentifierSubEditor =
@"cellIdSubEditor";
22NSString *TableCellIdentifierMultiChoice =
@"cellIdMultiChoice";
26- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
31#pragma mark - Create table view cells
32- (UITableViewCell *)tableViewCellFromIdentifier:(NSString *)identifier
35 UITableViewCell *cell = [[
self tableView] dequeueReusableCellWithIdentifier:identifier];
40 if ([identifier isEqualToString:TableCellIdentifierText])
44 reuseIdentifier:identifier] autorelease];
45 [[textCell textfield] setDelegate:self];
48 else if ([identifier isEqualToString:TableCellIdentifierSecretText])
52 reuseIdentifier:identifier] autorelease];
53 [[secretCell textfield] setDelegate:self];
56 else if ([identifier isEqualToString:TableCellIdentifierYesNo])
59 reuseIdentifier:identifier] autorelease];
61 else if ([identifier isEqualToString:TableCellIdentifierSelection])
64 reuseIdentifier:identifier] autorelease];
66 else if ([identifier isEqualToString:TableCellIdentifierSubEditor])
69 reuseIdentifier:identifier] autorelease];
71 else if ([identifier isEqualToString:TableCellIdentifierMultiChoice])
73 cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1
74 reuseIdentifier:identifier] autorelease];
78 NSAssert(
false,
@"Unknown table cell identifier");