How can I show a UIDatePicker instead of a keyboard when a user selects a UITextField?

后端 未结 4 1971
忘了有多久
忘了有多久 2021-02-14 14:32

I have a nice clean UI within a table view which has a few text fields for the user to fill out. One of the fields is for the user\'s birthday.

I\'d like to have it so t

4条回答
  •  爱一瞬间的悲伤
    2021-02-14 15:12

    I would implement this by just animating a view containing the UIDatePicker, a Done, and Cancel button) up from the bottom of the screen. Using CoreAnimation, this should be pretty easy.

提交回复
热议问题