UIPickerView reloadData

前端 未结 3 712
一向
一向 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 00:59

    I think you should be using:

    reloadComponent:

    or

    reloadAllComponents:

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-02-13 01:12

    I think you should be using: reloadComponent or reloadAllComponents.

    But these methods are useless unless you connect UIPickerViewDalegate and UIPickerViewDataSource to file owner.

    0 讨论(0)
提交回复
热议问题