Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想制作一个允许用户在文本字段中输入值的应用程序,然后它应该更改标签的值。我是编程新手,所以我真的不知道如何编码。在 .m 文件中,我应该如何将文本字段的值连接到标签的值?提前致谢
将您的 textField 绑定到此方法
– textFieldShouldEndEditing:(UITextField*) txtField { [labelField setText: [textField text]] return YES: }