How can I use the default background image for a UIView?
+2
A:
theView.backgroundColor = [UIColor groupTableViewBackgroundColor];
KennyTM
2010-03-21 13:41:52
A:
You can do something like this with UIView class:
[yourview setBackgroundColor:
[[UIColor alloc]
initWithPatternImage:[UIImage imageNamed:@"yourpattern.png"]]];
I always prefer using Interface Builder and just put a UIImageView occupying all UIView and send that UIImageView to back though...
Pablo Santa Cruz
2010-03-21 13:41:58