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