UIButton的遍历时间:2023-03-09 08:22:06 for (id obj in self.view.subviews) { if ([obj isKindOfClass:[UIButton class]]) { UIButton * theButton = (UIButton *)obj; } }