Getting string from text box in xcode
I am new to xcode. I have one string variable and one text box. I want to get the strings from the text box to the stri开发者_JAVA技巧ng variable. How can I do this?
You can just get the text property of the text box (I assume you mean a UITextField).
NSString *myString = myTextField.text;
精彩评论