project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m
branchios-develop
changeset 13166 ba5c794adae3
parent 12872 00215a7ec5f5
equal deleted inserted replaced
13164:eefd6d066768 13166:ba5c794adae3
   181 
   181 
   182     cell.selectionStyle = UITableViewCellSelectionStyleNone;
   182     cell.selectionStyle = UITableViewCellSelectionStyleNone;
   183     return cell;
   183     return cell;
   184 }
   184 }
   185 
   185 
   186 -(CGFloat) tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
   186 - (CGFloat)tableView:(UITableView *)aTableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
   187     if (0 == [indexPath section])
   187     if (0 == [indexPath section])
   188         return aTableView.rowHeight;
   188         return aTableView.rowHeight;
   189     else
   189     else
   190         return IS_ON_PORTRAIT() ? 208 : 120;
   190         return IS_ON_PORTRAIT() ? 208 : 120;
   191 }
   191 }
   192 
   192 
   193 -(NSString *)tableView:(UITableView *)aTableView titleForHeaderInSection:(NSInteger)section {
   193 - (NSString *)tableView:(UITableView *)aTableView titleForHeaderInSection:(NSInteger)section {
   194     NSString *sectionTitle = nil;
   194     NSString *sectionTitle = nil;
   195     switch (section) {
   195     switch (section) {
   196         case 0:
   196         case 0:
   197             sectionTitle = NSLocalizedString(@"Weaponset Name", @"");
   197             sectionTitle = NSLocalizedString(@"Weaponset Name", @"");
   198             break;
   198             break;