And*_*rew 16 iphone cocoa-touch objective-c nsstring uitextfield
我尝试了各种方法,都给了我警告.比如userName = [NSString stringWithFormat:@"%@", [yournamefield stringValue]];这只是给了我一个警告
'UITextField'可能无法响应'-stringValue'
我该怎么做呢?
Jil*_*ouc 38
使用text属性在文本字段中获取文本
NSString *name = yourNameField.text;
Run Code Online (Sandbox Code Playgroud)
Eri*_*hai 11
使用以下text属性UITextField:
NSString *userName = yourNameField.text;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
47502 次 |
| 最近记录: |