开发者

Getting string from text box in xcode

开发者 https://www.devze.com 2023-02-20 11:23 出处:网络
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

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;
0

精彩评论

暂无评论...
验证码 换一张
取 消