如何在UIDatePicker中仅禁用日期选择而不是时间选择 [英] How to disable only date selection in UIDatePicker not time selection
本文介绍了如何在UIDatePicker中仅禁用日期选择而不是时间选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的应用程序中使用UIDatePicker,我想只禁用其中的日期选择,时间选择不应该生效。
I am using UIDatePicker in my app and I want to disable only date selection in it and time selection should not be effected.
任何人都可以帮助我。
Can anyone help me with this.
推荐答案
将 datePickerMode
设置为 UIDatePickerModeTime
。
这篇关于如何在UIDatePicker中仅禁用日期选择而不是时间选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文