equal
deleted
inserted
replaced
129 |
129 |
130 |
130 |
131 #pragma mark - |
131 #pragma mark - |
132 #pragma mark Table view delegate |
132 #pragma mark Table view delegate |
133 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
133 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
134 int newRow = [indexPath row]; |
134 NSInteger newRow = [indexPath row]; |
135 int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
135 NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
136 int newSection = [indexPath section]; |
136 NSInteger newSection = [indexPath section]; |
137 int oldSection = (lastIndexPath != nil) ? [lastIndexPath section] : -1; |
137 NSInteger oldSection = (lastIndexPath != nil) ? [lastIndexPath section] : -1; |
138 |
138 |
139 if (newRow != oldRow || newSection != oldSection) { |
139 if (newRow != oldRow || newSection != oldSection) { |
140 NSString *flag = nil; |
140 NSString *flag = nil; |
141 if ([indexPath section] == 0) |
141 if ([indexPath section] == 0) |
142 flag = [self.flagArray objectAtIndex:newRow]; |
142 flag = [self.flagArray objectAtIndex:newRow]; |