Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get the pinstripe background to show?

I'd like to use the pinstripe background that shows up in the Settings app and many other iPhone apps behind table views. Is is already included in some graphics library? How can I make it show up in a UIView or UITableView?

Pinstripe http://img.skitch.com/20090630-p783xugab8i9c7x2c63t3ped52.jpg

like image 563
nevan king Avatar asked Jun 30 '09 08:06

nevan king


2 Answers

myView.backgroundColor = [UIColor groupTableViewBackgroundColor];

Just to stick with convention though, don't apply this background unless you're using tableviews that scroll as this type of background is semiotical to tableview scrolls.

like image 145
David Wong Avatar answered Sep 18 '22 00:09

David Wong


You just have to use the "grouped" style on your table view.

like image 39
Nikolai Ruhe Avatar answered Sep 19 '22 00:09

Nikolai Ruhe