How can i get the value of a UITextField
?
Some sample code to attach it to an NSString
would be fab!
The UITextField has to be connected to your file through Interface Builder, and declared as an IBOutlet in your header file:
IBOutlet UITextField *textField;
Then you'd access it in your methods as:
NSString *enteredText = [textField text]; // Or textField.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