project_files/HedgewarsMobile/Classes/SettingsBaseViewController.m
branchios-revival
changeset 11148 064a53861759
parent 11116 102684240fe8
child 11214 d8135421833c
equal deleted inserted replaced
11147:f9c460720e02 11148:064a53861759
   196 }
   196 }
   197 
   197 
   198 #pragma mark -
   198 #pragma mark -
   199 #pragma mark Table view delegate
   199 #pragma mark Table view delegate
   200 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   200 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
   201     int newRow = [indexPath row];
   201     NSInteger newRow = [indexPath row];
   202     int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   202     NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1;
   203     UIViewController *nextController = nil;
   203     UIViewController *nextController = nil;
   204 
   204 
   205     if (newRow != oldRow) {
   205     if (newRow != oldRow) {
   206         [tableView deselectRowAtIndexPath:lastIndexPath animated:YES];
   206         [tableView deselectRowAtIndexPath:lastIndexPath animated:YES];
   207         [targetController.navigationController popToRootViewControllerAnimated:NO];
   207         [targetController.navigationController popToRootViewControllerAnimated:NO];