0

I have a question about UIDatePicker. Is it possible to avoid to select past dates? I mean, select only day from today to the following days, avoiding to select the "past".

Jano
  • 62,815
  • 21
  • 164
  • 192
doxsi
  • 1,002
  • 19
  • 42

1 Answers1

1

Use:

[datePicker setMinimumDate:[NSDate date]];

This will just set the minimum date to the current date (returned by [NSDate date]).

Jsdodgers
  • 5,253
  • 2
  • 20
  • 36