Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIDatePicker in PopoverView in iPad

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!

like image 286
Chelsea Avatar asked Oct 05 '10 19:10

Chelsea


1 Answers

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/

like image 152
rajt Avatar answered Oct 04 '22 15:10

rajt