project_files/HedgewarsMobile/Classes/FortsViewController.m
branchios-revival
changeset 11148 064a53861759
parent 10108 c68cf030eded
child 11188 e03bb95edf44
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
   104 
   104 
   105 
   105 
   106 #pragma mark -
   106 #pragma mark -
   107 #pragma mark Table view delegate
   107 #pragma mark Table view delegate
   108 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   108 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   109     int newRow = [indexPath row];
   109     NSInteger newRow = [indexPath row];
   110     int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   110     NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   111 
   111 
   112     if (newRow != oldRow) {
   112     if (newRow != oldRow) {
   113         // if the two selected rows differ update data on the hog dictionary and reload table content
   113         // if the two selected rows differ update data on the hog dictionary and reload table content
   114         [self.teamDictionary setValue:[fortArray objectAtIndex:newRow] forKey:@"fort"];
   114         [self.teamDictionary setValue:[fortArray objectAtIndex:newRow] forKey:@"fort"];
   115 
   115