标签:
UIButton *clearButton = [self.textField valueForKey:@"_clearButton"];
[clearButton setImage:[UIImage imageNamed:@"search_clear_button"] forState:UIControlStateNormal];
[iOS-UI]给输入框添加清除按钮的代码
原文地址:http://www.cnblogs.com/lz465350/p/5474736.html