Select row After UIPickerView is loaded

后端 未结 6 1987
广开言路
广开言路 2020-12-07 22:13

I have an iPhone database app that loads a UIPickerView with data from a table. I want to set the selected row to a particular row from the data in another tab

6条回答
  •  失恋的感觉
    2020-12-07 22:23

    Place this wherever you initialize the UIView that contains your UIPickerView as a subview:

    [myPickerView selectRow:rowWithTedsName inComponent:columnWithNames animated:NO];
    

提交回复
热议问题