Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个 UITableViews,我想做的是能够从单个类(即 AppDelegate 类)更改这些 UITableViews 的属性。
有谁知道是否可以这样做?
如果您使用的是 iOS5,那么您可以使用 UIAppearance
//For example this changes the background color of all UITableViews contained in a UIView [[UITableView appearanceWhenContainedIn:[UIView class], nil] setBackgroundColor:[UIColor greenColor]];