- //*** childScroView 为父视图
- for (UIView * thebtn in [childScroView subviews]) {
- if ([thebtn isKindOfClass:[UIButton class]]) {
- //***改变字体颜色
- [(UIButton *)thebtn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
- //***改变背景
- [(UIButton *)thebtn setBackgroundImage:nil forState:UIControlStateNormal];
- }
- }
- //该片段来自于http://www.codesnippet.cn/detail/020120148357.html
来源: http://www.codesnippet.cn/detail/020120148357.html