32 :(NSString *)identifier
33{
34
35 UITableViewCell *cell = [[self tableView] dequeueReusableCellWithIdentifier:identifier];
36 if (cell != nil)
37 return cell;
38
39
40 if ([identifier isEqualToString:TableCellIdentifierText])
41 {
44 reuseIdentifier:identifier] autorelease];
45 [[textCell textfield] setDelegate:self];
46 cell = textCell;
47 }
48 else if ([identifier isEqualToString:TableCellIdentifierSecretText])
49 {
52 reuseIdentifier:identifier] autorelease];
53 [[secretCell textfield] setDelegate:self];
54 cell = secretCell;
55 }
56 else if ([identifier isEqualToString:TableCellIdentifierYesNo])
57 {
59 reuseIdentifier:identifier] autorelease];
60 }
61 else if ([identifier isEqualToString:TableCellIdentifierSelection])
62 {
64 reuseIdentifier:identifier] autorelease];
65 }
66 else if ([identifier isEqualToString:TableCellIdentifierSubEditor])
67 {
69 reuseIdentifier:identifier] autorelease];
70 }
71 else if ([identifier isEqualToString:TableCellIdentifierMultiChoice])
72 {
73 cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1
74 reuseIdentifier:identifier] autorelease];
75 }
76 else
77 {
78 NSAssert(false, @"Unknown table cell identifier");
79 }
80
81 return cell;
82}