在阅读之后,我发现您可以自定义UISwitch控件上的文本和颜色。我很好奇,这些方法是否会导致我的应用程序获得批准并包含在app 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]]; 发布于 2009-05-21 18:13:19
这将导致你的应用程序审批出现问题。问我是怎么知道的:P
我今天刚收到苹果公司发来的令人讨厌的短信。我们正在寻找替代方案。
https://stackoverflow.com/questions/694848
复制相似问题