UIPickerView reloadData

前端 未结 3 713
一向
一向 2021-02-13 00:35

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:

[pick         


        
3条回答
  •  孤城傲影
    2021-02-13 01:09

    You should be calling reloadComponent: or reloadAllComponents:.

    There may be a private reloadData used under the covers, but it's not part of the public API, and therefore, shouldn't be relied upon.

提交回复
热议问题