iOS 根据tag值获取控件

UIButton *btn = (UIButton *)[self.view viewWithTag:sender.tag];
btn.backgroundColor = [UIColor cyanColor];

你可能感兴趣的:(iOS 根据tag值获取控件)