如何重新加载UIpicker视图数据

发布于 2024-09-08 23:32:33 字数 90 浏览 1 评论 0原文

我想在 UIpicker 视图中重新加载数据。实际上我在视图上有 2 个选择器。我想根据之前选择的选择器值填充第二个选择器中的数据。是否可以?请建议我如何做到这一点。

I want to reload the data in the UIpicker view. actaully i have 2 picker on the view. and i want to fill the data in the second picker according to the previous selected picker value. is it possible? please suggest how i do this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

瑕疵 2024-09-15 23:32:33

看看如何:

http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UIPickerView_Class/Reference/UIPickerView.html#//apple_ref/doc/uid/TP40006842-CH3-SW10

为了响应 didSelectRow 消息,您的视图控制器作为 UIPickerView 委托发送?

How about looking at:

http://developer.apple.com/iPhone/library/documentation/UIKit/Reference/UIPickerView_Class/Reference/UIPickerView.html#//apple_ref/doc/uid/TP40006842-CH3-SW10

in response to the didSelectRow message your view controller is sent as the UIPickerView delegate?

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