Reputation: 2401
If I set the Min and Max dates for the DatePicker, the user can still select them but then the wheels spin back. I just want a user to pick dates between one or two months, and that's it. I'm debating whether I would be better off just using the Picker and handling the components and data myself OR is there a way to have the DatePicker not show dates that are outside of the Min/Max bounds?
Upvotes: 2
Views: 864
Reputation: 2128
You cannot remove the values outside the minimumDate
and maximumDate
range, so the only way would be to create a custom UIPickerView
Apple's Human Interface Guidelines does not have any recommendation on this, but personally I think it's better to use the standard date picker with the disabled values, especially because having only one or two values in the month section (which is the widest) leaves too much whitespace.
Upvotes: 3