2013-03-28 161 views
4

我想爲我的應用使用這樣的背景。此圖像來自ios 6.是否以編程方式將其附加到視圖。不要想在這個項目的形象和使用UIImage的觀點,因爲它已經存儲在IOS默認的ios背景

enter image description here

+0

我不認爲蘋果讓你這樣做。 – Linuxios

回答

6

是的,你可以做到這一點,通過選擇背景你在屬性檢查器中查看,選擇其他然後第三個選項卡 - > iPhone/iPad的SDK - > ScrollViewTexturedBackground(如下面的截圖)。

enter image description here

2

的UIColor類具有以下類方法

+ (UIColor *)scrollViewTexturedBackgroundColor 

嘗試設置背景顏色。

myView.backgroundColor = [UIColor scrollViewTexturedBackgroundColor]; 
+0

已棄用不是一個好的解決方案。 – Cal30