您是否可以在iOS SDK中选择默认背景图像?

时间:2012-01-13 12:19:55

标签: ios ipad

当我执行UIModalTransitionStyleFlipHorizo​​ntal时,我希望从多任务菜单或在Safari中拖动页面外部时看到bg图像。这是Apple提供的东西吗?

2 个答案:

答案 0 :(得分:4)

排序,是的。看看这些UIColor方法:

+ groupTableViewBackgroundColor
+ viewFlipsideBackgroundColor
+ scrollViewTexturedBackgroundColor
+ underPageBackgroundColor

您可以使用它们来设置背景“颜色”,这些颜色实际上是图案图像颜色。除了那些之外没有别的东西提供(据我所知)。

例如(感谢@JonRamvi):

window.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];

答案 1 :(得分:0)

交叉影线背景颜色可用作scrollViewTexturedBackgroundColor,UIColor上的类方法。如果你想在模态转换期间看到我认为你应该将app委托中的apps窗口的backgroundColor设置为这种颜色