After doing some reading, I’ve found that you can customize the text and color on a UISwitch control. I’m curious if these methods will cause problems trying to get my app approved and included in the App Store.
Sample code taken from 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]];
this will not create problems with submitting to the app store. You are allowed to use custom controls or altered versions of the built in controls so long as you do not use any private (undocumented) APIs to build/alter these widgets.