简体   繁体   English

刷新/重新加载uipicker

[英]Refresh/ reload the uipicker

Hii, HII,

I add the uipicker on a view. 我在视图上添加了uipicker。 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. 我想从不同文本框编辑事件的不同数据源填充uipicker。 so i want to refresh or reload the data on uipicker view. 所以我想在uipicker视图上刷新或重新加载数据。 so plz suggest. 所以PLZ建议。

The picker will ask it's dataSource for new information every time reloadAllComponents is called. 每次调用reloadAllComponents ,选择器都会询问它的dataSource以获取新信息。 You can also specify a single component by calling reloadComponent: with the integer index of the component you want to reload. 您还可以通过调用reloadComponent:来指定单个组件reloadComponent:使用要重新加载的组件的整数索引。

All this can be easily found in the documentation . 所有这些都可以在文档中轻松找到。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM