Uitextfield with clearbutton iOS swift

Solution:


        textField.clearButtonMode = UITextFieldViewMode.whileEditing

It will allow you to clear the textfield when editing 

Comments

Popular posts from this blog

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift