0

I have a UIPickerView with 2 components

The default value of both components is selected to the initial index.

How can I set the 1st component to the second index and leave the 2nd component on the 4th item.

-- UPDATE --

I added

[currencyPicker selectRow:1 inComponent:0 animated:YES];

to

viewDidLoad

and now the elements in my UIPicker do not load

Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177

1 Answers1

2

You can tell it to go to a specific row, like this:

 [myPickerView selectRow:_my_row_ inComponent: _1st_component animated:YES];
Rayfleck
  • 12,116
  • 8
  • 48
  • 74