阅读了一些内容后,我发现可以在UISwitch控件上自定义文本和 colored颜色 .我很好奇这些方法是否会在try 让我的应用获得批准并包含在应用store 中时引发问题.
示例代码取自iPhone Developer's Cookbook Sample Code:
// Custom font, color
switchView = [[UICustomSwitch alloc] initWithFrame:CGRectZero];
[switchView setCenter:CGPointMake(160.0f,260.0f)];
[switchView setLeftLabelText: @"Foo"];
[switchView setRightLabelText: @"Bar"];
[[switchView rightLabel] setFont:[UIFont fontWithName:@"Georgia" size:16.0f]];
[[switchView leftLabel] setFont:[UIFont fontWithName:@"Georgia" size:16.0f]];
[[switchView leftLabel] setTextColor:[UIColor yellowColor]];