UITextField text property returns random integer.

Posted by Joshua on Stack Overflow See other posts from Stack Overflow or by Joshua
Published on 2010-04-29T05:34:38Z Indexed on 2010/04/29 5:37 UTC
Read the original article Hit count: 396

Filed under:
|

When I try to get the text of a UITextField it returns a random integer. Here's the code I used:

NSLog(@"Field Text: %d", field.text);

field being the UITextField. And in the debugger it returns an random number, for example 29876208 when there is text in the UITextField.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about uitextfield