【发布时间】:2014-09-13 12:15:03
【问题描述】:
我正在尝试从 UITextField 的内容中获取字符串的标题,因此您可以随时对其进行编辑和保存。 我已经将 String 和 UITextField 关联起来,但是只要您在情节提要中编辑 UITextField 的内容,一切都可以正常工作,并且在应用程序(模拟器和设备)中不起作用。
这就是我想做的:
const NSString *nameOfTheString = @"the content of the text field, that you can change when you want from the application"
这是我的代码:
nameOfTheString = nameOfTheTextField.text;
希望你能帮助我。
我正在使用 Xcode 6 (Objective-C)
【问题讨论】:
标签: ios objective-c xcode nsstring uitextfield