Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: MightyM on June 28, 2012, 02:47:15 PM

Title: UIInput passwords on iOS not hiding characters
Post by: MightyM on June 28, 2012, 02:47:15 PM
I've created a username/password dialog box. The password is a UIInput with keyboard type set to Default and the IsPassword box checked. When running on iOS the text appearing in the box above the keyboard is not being treated like a password. Every character is shown instead of being replaced with a dot.

To fix this, I replaced line 200 in UIInput.cs with:

  1. if (isPassword)
  2. {
  3.     mKeyboard = TouchScreenKeyboard.Open(mText, TouchScreenKeyboardType.Default, false, false, true);
  4. }
  5. else
  6. {
  7.     mKeyboard = TouchScreenKeyboard.Open(mText, (TouchScreenKeyboardType)((int)type));
  8. }
  9.  

Now the characters are properly being replaced with dots as they would in a standard iOS password box.
Title: Re: UIInput passwords on iOS not hiding characters
Post by: ArenMook on June 29, 2012, 02:53:47 AM
I've added the change to my local copy, so you'll see it in the next update. Thanks!