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

Objective c 从appDelegate更改所有表格单元格属性,objective-c,ios,uitableview,Objective C,Ios,Uitableview,我有几个UITableView,我想做的是能够从单个类(AppDelegate类)更改这些UITableView的属性 有人知道是否可以这样做吗?如果您使用的是iOS5,那么您可以使用UIAppearance //For example this changes the background color of all UITableViews contained in a UIView [[UITableView appearanceWhenContainedIn:[UIView class],

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


有人知道是否可以这样做吗?

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

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

请访问此链接是可能的,但不是这样一个聪明的方式,你应该选择继承代替。也来看看。