1

我想知道如何将 UIView 的 backgroundColor 设置为滚动视图纹理背景颜色

这是我计划实现它的方式,但我只是不确定 patternImage 叫什么。

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

任何帮助将不胜感激。

4

2 回答 2

5
jumpBarContainer.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
于 2012-06-20T22:59:11.417 回答
4
[UIColor scrollViewTexturedBackgroundColor]

是你需要使用的。

于 2012-06-20T22:58:56.287 回答