How can I get the pinstripe background to show?

2019-02-08 17:45发布

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

3条回答
Fickle 薄情
2楼-- · 2019-02-08 18:14

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

查看更多
爷的心禁止访问
3楼-- · 2019-02-08 18:15
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.

查看更多
冷血范
4楼-- · 2019-02-08 18:17

As of iOS 6.0, this doesn't work anymore.

查看更多
登录 后发表回答