选择 UI 选择器值时需要帮助调用函数

发布于 2024-12-02 00:32:25 字数 103 浏览 2 评论 0原文

我正在构建一个简单的单位转换应用程序,希望用户选择他们想要的类型转换,并调用一个函数,以便当他们在一个文本框中输入数字时,转换会显示在另一个文本框中。我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏了南城 2024-12-09 00:32:25

您可以使用委托方法 textFieldDidEndEditing: 或注册 UITextFieldTextDidChangeNotification。

You could use the delegate method textFieldDidEndEditing: or register for UITextFieldTextDidChangeNotification.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文