How to make UIDatePicker at the bottom of the screen?

I am currently using MonoTouch with MonoTouch.Dialog. When you click on the date field, it pushes the navigation controller, so you go to the screen to see your UIDatePicker, where you select the date, and then return to the main screen again. I would really like for this interface, like the other applications that I used, when you select the date field, UIDatePicker appears at the bottom of the current screen.

I would like to learn how to do this and apply it to other input fields where I can use a custom picker that also appears at the bottom of the current screen.

Does anyone have an exchange code that will allow UIPicker / UIDatePicker to appear at the bottom of the active screen?

Thanks.

+4
source share
1 answer

You simply create a UIPickerView as a rule, but set its frame outside the visible area. After you click on a cell, you change the starting point of the UIPickerView frame so that the toolbar view becomes visible. You can animate the property frame so that you can make a nice soft animation that will appear in your selection view from the bottom of the phone.

0
source

All Articles