project_files/HedgewarsMobile/Classes/FlagsViewController.m
branchios-revival
changeset 11148 064a53861759
parent 10108 c68cf030eded
child 12872 00215a7ec5f5
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
   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];