project_files/HedgewarsMobile/Classes/SchemeWeaponConfigViewController.m
changeset 6209 074ab6ebcb3e
parent 6115 485cfecadc9a
child 6220 39782c4d9246
equal deleted inserted replaced
6208:b831679e9467 6209:074ab6ebcb3e
    85                           NSLocalizedString(@"Scheme",@""),
    85                           NSLocalizedString(@"Scheme",@""),
    86                           NSLocalizedString(@"Weapon",@""),
    86                           NSLocalizedString(@"Weapon",@""),
    87                           NSLocalizedString(@"Style",@""),nil];
    87                           NSLocalizedString(@"Style",@""),nil];
    88         UISegmentedControl *controller = [[UISegmentedControl alloc] initWithItems:array];
    88         UISegmentedControl *controller = [[UISegmentedControl alloc] initWithItems:array];
    89         [array release];
    89         [array release];
    90         [controller addTarget:self.tableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged];
       
    91         controller.segmentedControlStyle = UISegmentedControlStyleBar;
    90         controller.segmentedControlStyle = UISegmentedControlStyleBar;
    92         controller.tintColor = [UIColor lightGrayColor];
    91         controller.tintColor = [UIColor lightGrayColor];
    93         controller.selectedSegmentIndex = 0;
    92         controller.selectedSegmentIndex = 0;
    94         self.topControl = controller;
    93         self.topControl = controller;
       
    94         [controller addTarget:self.tableView action:@selector(reloadData) forControlEvents:UIControlEventValueChanged];
    95         [controller release];
    95         [controller release];
    96     }
    96     }
    97     return topControl;
    97     return topControl;
    98 }
    98 }
    99 
    99