project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m
changeset 3701 8c449776ebe6
parent 3697 d5b30d6373fc
child 3737 2ba6ac8a114b
--- a/project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m	Sun Aug 01 09:17:59 2010 -0400
+++ b/project_files/HedgewarsMobile/Classes/SingleWeaponViewController.m	Sun Aug 01 17:58:09 2010 +0200
@@ -214,6 +214,22 @@
         return 120;
 }
 
+-(NSString *)tableView:(UITableView *)aTableView titleForHeaderInSection:(NSInteger)section {
+    NSString *sectionTitle = nil;
+    switch (section) {
+        case 0:
+            sectionTitle = NSLocalizedString(@"Weaponset Name", @"");
+            break;
+        case 1:
+            sectionTitle = NSLocalizedString(@"Weapon Ammuntions", @"");
+            break;
+        default:
+            DLog(@"nope");
+            break;
+    }
+    return sectionTitle;
+}
+
 #pragma mark -
 #pragma mark Table view delegate
 -(void) tableView:(UITableView *)aTableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {