project_files/HedgewarsMobile/Classes/SingleSchemeViewController.m
branchios-develop
changeset 13166 ba5c794adae3
parent 12872 00215a7ec5f5
equal deleted inserted replaced
13164:eefd6d066768 13166:ba5c794adae3
   298     }
   298     }
   299 
   299 
   300     [aTableView deselectRowAtIndexPath:indexPath animated:YES];
   300     [aTableView deselectRowAtIndexPath:indexPath animated:YES];
   301 }
   301 }
   302 
   302 
   303 -(NSString *)tableView:(UITableView *)aTableView titleForHeaderInSection:(NSInteger)section {
   303 - (NSString *)tableView:(UITableView *)aTableView titleForHeaderInSection:(NSInteger)section {
   304     NSString *sectionTitle = nil;
   304     NSString *sectionTitle = nil;
   305     switch (section) {
   305     switch (section) {
   306         case 0:
   306         case 0:
   307             sectionTitle = NSLocalizedString(@"Scheme Name", @"");
   307             sectionTitle = NSLocalizedString(@"Scheme Name", @"");
   308             break;
   308             break;
   317             break;
   317             break;
   318     }
   318     }
   319     return sectionTitle;
   319     return sectionTitle;
   320 }
   320 }
   321 
   321 
   322 -(CGFloat) tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
   322 - (CGFloat)tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
   323     if ([indexPath section] == 0)
   323     if ([indexPath section] == 0)
   324         return aTableView.rowHeight;
   324         return aTableView.rowHeight;
   325     else if ([indexPath section] == 1)
   325     else if ([indexPath section] == 1)
   326         return IS_ON_PORTRAIT() ? 72 : aTableView.rowHeight;
   326         return IS_ON_PORTRAIT() ? 72 : aTableView.rowHeight;
   327     else
   327     else