equal
deleted
inserted
replaced
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 |