UIPickerView reloadData

Matt Winters picture Matt Winters · Jul 8, 2010 · Viewed 11.2k times · Source

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?

Thanks

Answer

Avalanchis picture Avalanchis · Jul 8, 2010

I think you should be using:

reloadComponent:

or

reloadAllComponents: