刷新/重新加载 uipicker

发布于 2024-09-11 17:36:20 字数 124 浏览 0 评论 0原文

嗨,

我在视图上添加了 uipicker。我在不同的文本框上显示的视图开始编辑事件。我想在不同的文本框编辑事件上从不同的数据源填充 uipicker。所以我想刷新或重新加载 uipicker 视图上的数据。所以请建议。

Hii,

I add the uipicker on a view. and that view i am showing on the different textbox begin editing event. and i want to fill the uipicker from the different datasources on the different textbox editing event. so i want to refresh or reload the data on uipicker view. so plz suggest.

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

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

发布评论

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

评论(1

初雪 2024-09-18 17:36:20

每次调用 reloadAllComponents 时,选择器都会向其数据源询问新信息。您还可以通过使用要重新加载的组件的整数索引调用 reloadComponent: 来指定单个组件。

所有这些都可以在 文档

The picker will ask it's dataSource for new information every time reloadAllComponents is called. You can also specify a single component by calling reloadComponent: with the integer index of the component you want to reload.

All this can be easily found in the documentation.

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