equal
deleted
inserted
replaced
99 |
99 |
100 |
100 |
101 #pragma mark - |
101 #pragma mark - |
102 #pragma mark Table view delegate |
102 #pragma mark Table view delegate |
103 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
103 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
104 int newRow = [indexPath row]; |
104 NSInteger newRow = [indexPath row]; |
105 int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
105 NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
106 |
106 |
107 if (newRow != oldRow) { |
107 if (newRow != oldRow) { |
108 // if the two selected rows differ update data on the hog dictionary and reload table content |
108 // if the two selected rows differ update data on the hog dictionary and reload table content |
109 // TODO: maybe this section could be cleaned up |
109 // TODO: maybe this section could be cleaned up |
110 NSDictionary *oldHog = [[teamDictionary objectForKey:@"hedgehogs"] objectAtIndex:selectedHog]; |
110 NSDictionary *oldHog = [[teamDictionary objectForKey:@"hedgehogs"] objectAtIndex:selectedHog]; |