project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 6209 074ab6ebcb3e
parent 6115 485cfecadc9a
child 6220 39782c4d9246
--- a/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Tue Oct 25 22:51:10 2011 +0200
+++ b/project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m	Wed Oct 26 00:30:35 2011 +0200
@@ -87,11 +87,11 @@
                           NSLocalizedString(@"Style",@""),nil];
         UISegmentedControl *controller = [[UISegmentedControl alloc] initWithItems:array];
         [array release];
-        [controller addTarget:self.tableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged];
         controller.segmentedControlStyle = UISegmentedControlStyleBar;
         controller.tintColor = [UIColor lightGrayColor];
         controller.selectedSegmentIndex = 0;
         self.topControl = controller;
+        [controller addTarget:self.tableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged];
         [controller release];
     }
     return topControl;