0

私はいくつかのUITableViewを持っていますが、私がやりたいのは、AppDelegateクラスである単一のクラスからそれらのUITableViewのプロパティを変更できるようにすることです。

誰かがそうすることが可能であるかどうか知っていますか?

4

1 に答える 1

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]];
于 2012-06-18T09:00:01.643 に答える