2012-05-20 24 views
6

我需要刷新UIPickerView中的數據。 我使用重新加載數據到UIPickerView

[pickerView reloadAllComponents]; 

但我的問題是,我需要選擇行復位,以及,我想選擇的行回去指數0,此刻它停留在相同指數在這是之前調用reloadAllComponents函數

任何人都可以幫忙嗎?

回答

9
[pickerView selectRow:0 inComponent:0 animated:YES]; 

應該這樣做