从appDelegate更改所有表格单元格属性

时间:2012-06-18 08:55:20

标签: objective-c ios uitableview

我有几个UITableViews,我想要做的是能够从单个类(AppDelegate类)更改这些UITableViews的属性。

有谁知道是否可以这样做?

1 个答案:

答案 0 :(得分:0)

如果您使用的是iOS5,则可以使用UIAppearance

//For example this changes the background color of all UITableViews contained in a UIView
[[UITableView appearanceWhenContainedIn:[UIView class], nil] setBackgroundColor:[UIColor greenColor]];
相关问题