如何从任何UIView的UITableViewStyleGrouped获取背景图像?

MrM*_*age 2 iphone objective-c uiview

我希望UIView与具有UITableViewStyleGrouped样式的UITableView具有相同的背景(例如,在设置应用程序中看到的灰白色图案).这可能吗?

提前致谢

MrMage

Chr*_*her 8

view.backgroundColor = [UIColor groupTableViewBackgroundColor];
Run Code Online (Sandbox Code Playgroud)