2012-06-20 131 views
1

我想知道如何設置我的UIView的backgroundColor到滾動查看帶紋理的背景顏色UIView backgroundColor with image

這是我計劃實現它的方式,但我只是不知道patternImage被調用。

jumpBarContainer.backgroundColor = [UIColor colorWithPatternImage:????] 

任何幫助將不勝感激。

回答

5
jumpBarContainer.backgroundColor = [UIColor scrollViewTexturedBackgroundColor]; 
+0

謝謝!這工作完美:P – HurkNburkS

4
[UIColor scrollViewTexturedBackgroundColor] 

是您需要使用的。