iOS 根据tag值获取控件
2018-06-01 本文已影响1823人
隔墙送来秋千影
UIButton *btn = (UIButton *)[self.view viewWithTag:sender.tag];
btn.backgroundColor = [UIColor cyanColor];
UIButton *btn = (UIButton *)[self.view viewWithTag:sender.tag];
btn.backgroundColor = [UIColor cyanColor];