UIDatePicker in PopoverView in iPad

Chelsea picture Chelsea · Oct 5, 2010 · Viewed 7.8k times · Source

I have an iPad specific application running iOS 3.2.2 which displays a settings view in a ui popover. This all renders great, but now I'm trying to get a date picker to render inside the view and not sure what the best approach is for displaying it.

Right now it has a button which toggles visibility of the date picker within the modal, but that seems very clumsy for managing dismissal compared to the normal approach of an action sheet.

I haven't been able to find a 'best practice' for this situation and was wondering if anyone's run into this before and could offer some suggestions or guidance.

Thanks!

Answer

rajt picture rajt · Nov 11, 2010

pls check the solution provided in the link .. might help you . 1. Create the UIDatePicker programmatically (don’t use the IB) 2. add it to the view after the popup is shown

http://omegadelta.net/2010/06/04/ipad-simulator-crashes-if-a-uidatepicker-is-in-a-uipopovercontroller/