Display datepicker on tapping on textfield

后端 未结 5 1634
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 14:43

How can I display a datetimepicker control on tap of a textbox?

I have a user interface that has arrival and departure text fields, and when a user clicks on arriva

5条回答
  •  庸人自扰
    2020-11-27 14:48

    There's a really useful class I found - the blog post is here: http://www.pietrorea.com/2012/07/how-to-hide-the-cursor-in-a-uitextfield/ but it basically uses the inputView/inputAccessory view as well. The kicker is that the UILabel, at least for what I was doing, was exactly what I needed.

提交回复
热议问题