obj-c: iPhone programming: change selection on pickerview programmatically

后端 未结 1 1772
天涯浪人
天涯浪人 2021-01-27 13:53

I got a pickerview and I want to add a code that will automatically show at the user the row I want.

相关标签:
1条回答
  • 2021-01-27 14:08

    Use the -selectRow:… method.

    [thePickerView selectRow:123 inComponent:0 animated:YES];
    
    0 讨论(0)
提交回复
热议问题