for (id obj in self.view.subviews) {if ([obj isKindOfClass:[UIButton Class]]) {UIButton* theButton = (UIButton*)obj;theButton.xxx = ooo;}}