I have a Text Field and I would like to replace the default dot character to something else when the password is hidden. Is there any way to do this easily?
2 options here:
Here's the code (will show the password as $$$$):
var password: String = ""
func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool
{
password = password+string
textField.text = textField.text+"$"
println("\(password)")
return false
}