[英]Are there any default background images you can choose from in the iOS SDK?
當我執行UIModalTransitionStyleFlipHorizontal時,我想從多任務菜單中或在Safari中將頁面拖到頁面外部時查看bg圖像。 這是蘋果提供的東西嗎?
是的,是的。 看一下這些UIColor
方法:
+ groupTableViewBackgroundColor
+ viewFlipsideBackgroundColor
+ scrollViewTexturedBackgroundColor
+ underPageBackgroundColor
您可以使用它們來設置實際上是圖案圖像顏色的背景“顏色”。 除了那些以外,沒有其他提供(據我所知)。
例如(感謝@JonRamvi):
window.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
陰影線背景顏色可作為scrollColorTexturedBackgroundColor(UIColor上的類方法)獲得。 如果您想在模式轉換期間看到它,我認為您應該將應用程序委托中的應用程序窗口的backgroundColor設置為此顏色
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.