uitextfield secure

Posted by D_R on Stack Overflow See other posts from Stack Overflow or by D_R
Published on 2012-10-09T09:36:07Z Indexed on 2012/10/09 9:36 UTC
Read the original article Hit count: 130

Filed under:
|

I have a UITexetField with "Secure" option enabled in InterfaceBuilder (used to enter a password). Then I try to read, what the user entered.

(void)textFieldDidEndEditing:(UITextField *)textField{
  NSString *txt = textField.text;
  int a = 0;
}

It works fine with iOS 5 but since I use it in iOS6, this method no longer works - neither in simulator, nor at the real device. It was called, but textField.text returns always an empty string.

With other UITextFields, without "Secure" option, it works fine.

Could somebody help me ?

© Stack Overflow or respective owner

Related posts about uitextfield

Related posts about ios6