equal
deleted
inserted
replaced
23 } |
23 } |
24 |
24 |
25 |
25 |
26 #pragma mark - |
26 #pragma mark - |
27 #pragma mark View lifecycle |
27 #pragma mark View lifecycle |
28 - (void)viewDidLoad { |
28 -(void) viewDidLoad { |
29 [super viewDidLoad]; |
29 [super viewDidLoad]; |
30 |
30 |
31 // the list of selectable controllers |
31 // the list of selectable controllers |
32 controllerNames = [[NSArray alloc] initWithObjects:NSLocalizedString(@"General",@""), |
32 controllerNames = [[NSArray alloc] initWithObjects:NSLocalizedString(@"General",@""), |
33 NSLocalizedString(@"Teams",@""), |
33 NSLocalizedString(@"Teams",@""), |
61 cell.textLabel.text = [controllerNames objectAtIndex:[indexPath row]]; |
61 cell.textLabel.text = [controllerNames objectAtIndex:[indexPath row]]; |
62 } |
62 } |
63 |
63 |
64 return cell; |
64 return cell; |
65 } |
65 } |
66 |
|
67 /* |
|
68 // Override to support editing the table view. |
|
69 - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { |
|
70 |
|
71 if (editingStyle == UITableViewCellEditingStyleDelete) { |
|
72 // Delete the row from the data source |
|
73 [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES]; |
|
74 } |
|
75 else if (editingStyle == UITableViewCellEditingStyleInsert) { |
|
76 // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view |
|
77 } |
|
78 } |
|
79 */ |
|
80 |
|
81 /* |
|
82 // Override to support rearranging the table view. |
|
83 - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { |
|
84 } |
|
85 */ |
|
86 |
|
87 /* |
|
88 // Override to support conditional rearranging of the table view. |
|
89 - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { |
|
90 // Return NO if you do not want the item to be re-orderable. |
|
91 return YES; |
|
92 } |
|
93 */ |
|
94 |
66 |
95 #pragma mark - |
67 #pragma mark - |
96 #pragma mark Table view delegate |
68 #pragma mark Table view delegate |
97 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
69 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
98 int newRow = [indexPath row]; |
70 int newRow = [indexPath row]; |