UIPickerView reloadData [英] UIPickerView reloadData
本文介绍了UIPickerView reloadData的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在更改组件(特别是组件的数量和颜色),在我称之为pickerOne的UIPickerView中,因此在进行更改后,我调用:
I'm changing components (in particular, the number and color of components), in a UIPickerView that I call pickerOne, so after making the changes, I call:
[pickerOne reloadData];
它似乎工作正常,但是我收到了编译警告:
and it appears to be working perfectly however, I'm getting a compile warning:
warning: 'UIPickerView' may not respond to '-reloadData'
虽然这似乎有用,但是我还应该用其他东西重新加载数据吗?
Although this appears to work, is there something else that I should use to reload data?
谢谢
推荐答案
我认为你应该使用:
reloadComponent:
reloadComponent:
或
reloadAllComponents:
reloadAllComponents:
这篇关于UIPickerView reloadData的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文