Search code examples
uipickerview

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


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


Solution

  • Use the -selectRow:… method.

    [thePickerView selectRow:123 inComponent:0 animated:YES];