UIPickerView selectRow
I have several view controllers with a couple of pickerviews and a tableview. I want to go back from one of the views to a view with a pickerview in it and go directly to the rows in a three component pickerview (offering the user the option to change one of the values). My problem is that I cannot get the UIPickerView selectRow to work. I have embedded [pickerview selectRow:r1 inComponent:c1 animated:YES] in the viewDidLoad method, I've tried the viewWillAppear method and a separate method but cannot get the components to move at all. Switching between the views is no problem and getting to the methods again is working but the components stay set a position 0. What am I doing wrong? All the pickerviews and tableview are working fine. I'm moving back from a tableview to a pickerview and this works fine incidentally, it just doesn't show the rows in the three components to start with which is what I'm trying to do.
|