+2  A: 
theView.backgroundColor = [UIColor groupTableViewBackgroundColor];
KennyTM
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