for (id obj in self.view.subviews) {if ([obj isKindOfClass:[UIButton Class]]) {UIButton* theButton = (UIButton*)obj;theButton.xxx = ooo;}}大概就这样 ,你试试