I've tried various methods, which all give me warnings. Such as userName = [NSString stringWithFormat:@"%@", [yournamefield stringValue]];
which just gives me a warning of
'UITextField' may not respond to '-stringValue'
How do i do this?
Get the text inside the text field using the text
property
NSString *name = yourNameField.text;
Use the text
property of UITextField
:
NSString *userName = yourNameField.text;
How about:
userName = [NSString stringWithFormat:@"%@", yournamefield.text];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With