将segmentedControl的颜色设置为clear,我目前做错了什么?它目前是黑色的?
UISegmentedControl *control = [[UISegmentedControl alloc] initWithItems:[NSArray arrayWithObjects:@"Info", @"People", @"Photos", @"Items", nil]];
[control setFrame:CGRectMake(0, 45, self.frame.size.width, 40)];
[control setBackgroundColor:[UIColor clearColor]];
[control setSegmentedControlStyle:UISegmentedControlStyleBar];
[control setSelectedSegmentIndex:0];