Closed hasidil closed 6 years ago
Sorry for inconvenience, with latest version there are UIDatePicker exposed properties
@property (nonnull, nonatomic, readonly) UIDatePicker datePicker; @property (nonnull, nonatomic, readonly) UIDatePicker timePicker; @property (nonnull, nonatomic, readonly) UIDatePicker *dateTimePicker;
and now you can set minimum date directly there.
How do we use these properties to set minimum and maximum date? Please elaborate
like [textField.datePicker setMinimumDate:minimumDate]
@Mamtak1811
@hackiftekhar how can i set maximum date in latest version v1.1.1, i can't set maximum valid date in this.. can we set maximum date ?
Yes, you can use my suggestion using v1.1.1
In swift i can't set maximum date as per your suggestion given in objective c. Can you provide some example for swift version ?
Are you able to access textField.datePicker
object?
ok thank you so much, now i can get access of minimum and maximum date as per your above comment. Thank you so much for quick reply.
Thanks sir!
setMinimumDate not working after new pod update.
NSDate *minimumDate = [NSDate date]; [self.tfDate setMinimumDate:minimumDate];