在我的视图中获取分组的tableview背景颜色

tom*_*tom 3 iphone background-color uitableview

我想在我的视图中使用分组tableview的背景颜色/图案,有没有办法做到这一点?

Dav*_*ong 17

是的,使用+[UIColor groupTableViewBackgroundColor]:

[myView setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
Run Code Online (Sandbox Code Playgroud)