如何重新加载UIpicker视图数据
我想在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看如何:
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?