iOS 如何改变UITextFiled的清除按钮图片

 textFild.clearButtonMode = UITextFieldViewModeWhileEditing;
UIButton *button =[textFild valueForKey:@"_clearButton"];
[button setImage:[UIImage imageNamed:@"叉号"] forState:UIControlStateNormal];
QQ20170605-171045.png

你可能感兴趣的:(iOS 如何改变UITextFiled的清除按钮图片)