PDA

View Full Version : how can i implement a datepicker in a uiScrollView?




macedes
Feb 21, 2012, 04:36 AM
When i click on a textfield, the date picker pops up but when i scroll a little bit down the date picker moves up. how can i fix the date picker in the bottom of the screen?



dejo
Feb 21, 2012, 08:22 AM
Don't add the datePicker as a subview of the scrollView but, rather, as a subview of the main view, whatever that may be in your case.

macedes
Feb 21, 2012, 10:55 AM
thank you!!