Reputation: 2488
I'm new on Cocoa OBJC and iPhone dev. Where to find the default background that apple uses everywhere (like the one on the iphone's default setting app) ? It's possible to set the image from interface builder or you have to set by line code? Thanks
Upvotes: 0
Views: 1417
Reputation: 57139
To expand on Carl's answer: if you create a UITableView
in the grouped style, either via Interface Builder or using the -initWithFrame:style:
method with UITableViewStyleGrouped
, you'll get that background by default. Before iOS 6, if you wanted to apply it to another view, you could set that view's backgroundColor
to [UIColor groupTableViewBackgroundColor]
; since then, that method has been deprecated and you need to create the color yourself.
Upvotes: 2
Reputation: 224972
That's just the default background of a UITableView
. If you make a UITableView
, you'll get the background.
Upvotes: 1