When to call selectRow: on a UIPickerView that has just loaded?

Posted by ragnarius on Stack Overflow See other posts from Stack Overflow or by ragnarius
Published on 2011-06-23T23:38:24Z Indexed on 2011/06/24 0:22 UTC
Read the original article Hit count: 131

Filed under:
|
|
|

I am trying to learn iPhone/iOS programming. I have an UIPickerView that should dispay its selected row as soon as it becomes visible (it is contained on a flippSideView).

Unfortunately, the flipSideViewController's awakeFromNib is not called. It is too early to call [pickView selectRow ..] from viewWillLoad (the pickView does not exist at that time), and somewhat too late to do it in viewDidAppear. So, how can I make the pickerView display the selected row as soon it becomes visible?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c