选择 UI 选择器值时需要帮助调用函数
我正在构建一个简单的单位转换应用程序,希望用户选择他们想要的类型转换,并调用一个函数,以便当他们在一个文本框中输入数字时,转换会显示在另一个文本框中。我正在使用 NSMutableArray。
I am building a simple unit conversion app and want to have the user select what type conversion they want and have a function called so that when they input a number in one of the text boxes the conversion gets displayed in the other. I am using an NSMutableArray.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用委托方法
textFieldDidEndEditing:
或注册 UITextFieldTextDidChangeNotification。You could use the delegate method
textFieldDidEndEditing:
or register for UITextFieldTextDidChangeNotification.