A: 

You might find this thread helpful for an alternative approach: http://discussions.apple.com/message.jspa?messageID=7923095

sbwoodside
+4  A: 

You will avoid the display problem and get a much better looking result if you simply put the UIDatePicker in a new view and implement the slide-up-from-the-bottom behavior yourself. It's not that hard.

  1. Create a UIView containing a date picker and a toolbar with a Done button on it. (In code or use Interface Builder, doesn't matter.)
  2. Add the popup view as a subview of your main view.
  3. Set the popup view's frame so that it is off the bottom of the screen: frame.origin.y = CGRectGetMaxY(mainView.bounds)
  4. Call [UIView beginAnimations:nil context:nil]
  5. Set the frame to where it should be: frame.origin.y -= CGRectGetHeight(popupView.bounds)
  6. Call [UIView commitAnimations]

(Note that the frame setting stuff is pseudocode.)

That's it. Do it in reverse when you need to dismiss the view. I think it will be worth the trouble; sticking a date picker in a UIActionSheet looks incredibly tacky.

benzado
A: 

Hi jmeado3,

Do you really need to put your picker on the UIActionSheet? Why don't you use an inputView property from UIResponder class? It shows UIDatePicker (or any other view) automatically when your control (e.g. UITextField) becomes a first responder. An example of using inputView with source code can be found here: Working with pickers.

lechec