I need to set the same gray stripped background to another view. Can anyone help me on this one?
Thanks, Leonardo
I need to set the same gray stripped background to another view. Can anyone help me on this one?
Thanks, Leonardo
It's very easy :)
[self.view setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
As of iOS 6.0 the given answer from Jasarien will not work anymore. Basically you need to place a UITableView
in the background to accomplish what you want (do not forget to set the autoresizingMask
or according contraints in Auto-Layout). You maybe also want to set the property userInteractionEnabled
to NO
so the user can not interact with your 'background color'.