inputTF.clearButtonMode = UITextFieldViewModeWhileEditing; 只有在输入了字符时才出现哦 转载于:https://www.cnblogs.com/lishanshan/p/10107792.html