定制UISwitch& App Store批准 [英] Custom UISwitch & App Store approval

查看:204
本文介绍了定制UISwitch& App Store批准的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在做了一些阅读之后,我发现你可以在UISwitch控件上自定义文本和颜色。我很好奇这些方法是否会导致我的应用程序获得批准并包含在App Store中时出现问题。

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.

示例代码取自 iPhone开发人员的食谱示例代码

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


推荐答案

这不会产生提交到应用商店的问题。只要您不使用任何私有(未记录的)API来构建/更改这些小部件,就可以使用自定义控件或内置控件的更改版本。

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.

这篇关于定制UISwitch& App Store批准的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆