How do I reload/refresh the UIPickerView (with new data array) based on button press?

前端 未结 7 1665
抹茶落季
抹茶落季 2020-12-24 04:30

IF I wanted a picker, for states/provinces, i haven\'t seen an example, but I mocked up shown above, a picker for US/Can/Mex. wondering can you dynamically switch t

7条回答
  •  悲&欢浪女
    2020-12-24 05:26

    Use multiple pickers, or use a switch block to determine which data should be loaded, and reload the picker.

提交回复
热议问题