I am new to Objective C and IPhone development.
I am using a UIDatePicker in my IPhone Application and my requirement is to allow the user to choose the future date only
Use the following line,to disable the previous dates of an UIDatePicker.
[picker setMinimumDate: [NSDate date]];
The current date is displayed as shown below
For Swift :
let todaysDate = Date()
datePicker.minimumDate = todaysDate
It will not let the user to pick a date older than Today
OR
Or, if you want to reduce the code, use following way:
datePicker.minimumDate = Date()
Did you try this
[picker setMinimumDate: [NSDate date]];