Author Topic: UIInput passwords on iOS not hiding characters  (Read 2711 times)

MightyM

  • Guest
UIInput passwords on iOS not hiding characters
« 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.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput passwords on iOS not hiding characters
« Reply #1 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!