How to make UITextField a Password Field in iPhone ?

By | June 23, 2011

Hi,

In order to make a UITextField a Password Field / Password Mode do the following.

In your .h class file,

IBOutlet UITextField *urPassword;

In your .m class file,

urPassword.secureTextEntry = YES;

This will make your UITextField in a Password entry mode or a Password Field.

🙂

Leave a Reply

Your email address will not be published. Required fields are marked *