直接指定 UISegmentedControl 的 segmentedControlStyle 属性值,可以得到一些非公开的设置。
1234 | UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems: [NSArray arrayWithObjects:@"First", @"Second", @"Third", nil]];segmentedControl.segmentedControlStyle = 3; |
联系客服