iOS: UIDatePicker “remove” dates outside min and max dates

一世执手 提交于 2021-01-21 12:52:21

问题


I have coded a simple UIDatePicker with minimum and max dates.

I want the datepicker to NOT show the unavailable dates, not only disable them.

Actual: you are able to scroll through all the unavailable dates, but when you rest on an unavailable date, the date picker scrolls to closest available date which is good but not good enough.

Expected: I would like to remove the unavailable dates all together from the datepicker, so that scrolling throught them is not even enabled.

来源:https://stackoverflow.com/questions/26289633/ios-uidatepicker-remove-dates-outside-min-and-max-dates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!