iphonecocoa-touchipaduipickerviewiphone-sdk-3.2

iPad and UIPickerView (or UIDatePickerView)


Has anyone had any luck using a UIPicker in the 3.2 SDK? I'm in the middle of porting an iPhone application over to an iPad and that's the one thing I can't seem to get to work. I've tried...

-Creating an action sheet, add the picker as a subview and displaying it.

-Creating that above action sheet, making it the view of a generic ViewController, adding that VC to a UIPopover

-Making just the picker the view of a generic ViewController, adding that VC to a UIPopover

With the action sheet it doesn't even attempt to draw it. In the popover view it attempts to draw but doesn't get rendered correctly.

Just wanted to check to see if anyone has accomplished this and if so how.

Thanks everyone!


Solution

  • I am the author of the tutorial mentioned above. For a picker to work in a popover and add the selected value to the textbox in the main view you need to use protocols. I have created a sample project to show this. I will be creating a tutorial on this soon.

    Sample Project