equal
deleted
inserted
replaced
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 |