I am doing a login page. I have UITextField for password.
Obviously, I do not want the password to be seen; instead, I want circles to show when typing. How do you s
in Swift 3.0 or later
passwordTextField.isSecureTextEntry = true
Simply check Secure Text Entry
check box on the storyboard
Please set your UItextField property secure..
Try this..
textFieldSecure.secureTextEntry = true
textFieldSecure is your UITextField...
Set the secureTextEntry
property to YES
.
In Interface Builder check the "Secure Text Entry" checkbox
or
In code set:
Objective-C:
yourTextField.secureTextEntry = YES;
Swift:
yourTextField.secureTextEntry = true
For Swift 3.0:
txtpassword.isSecureTextEntry = true