Custom UISwitch & App Store approval

Posted by pix0r on Stack Overflow See other posts from Stack Overflow or by pix0r
Published on 2009-03-29T15:50:21Z Indexed on 2010/04/30 1:27 UTC
Read the original article Hit count: 536

Filed under:
|
|

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]];

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c