views:

1047

answers:

3

Hey guys, like the question states, I am trying to slide in a UIDatePicker without using presentModalViewController or pushViewController and subsequently hide the main UITabBar of the application. Right now, I am adding the UIDatePicker subview with a couple buttons on a Navigation Bar to a temporary UIViewController, and initializing a UINavigationController with that temporary controller as the root. I am adding this Navigation Controller as a subview to self.navigationController.tabBarController in an attempt to overlay the UITabBar, but when I set the UITabBar to hidden, all I see is white beneath it, with no UIDatePicker visible. Any suggestions?

Note: My reasoning for this is that I can't figure out a way to use presentModalViewController with a view smaller than the screen.

+1  A: 
MikZ
+2  A: 

Answer here

Hide UiTabBar

sakrist
A: 

You could have a look to the DateCell example from Apple. UIDatePicker slide from bottom like UITextField's keyboard when you call becomeFirstResponder.

crazyfr