1 UIButton *clearButton = [self.textField valueForKey:@"_clearButton"]; 2 [clearButton setImage:[UIImage imageNamed:@"图片"] forState:UIControlStateNormal];