hackiftekhar / IQDropDownTextField

TextField with DropDown support using UIPickerView
MIT License
309 stars 87 forks source link

setMinimumDate not working after new pod update #82

Closed hasidil closed 6 years ago

hasidil commented 7 years ago

setMinimumDate not working after new pod update.

No visible @interface for 'BHDropDownTextField' declares the selector 'setMinimumDate:'

NSDate *minimumDate = [NSDate date]; [self.tfDate setMinimumDate:minimumDate];

hackiftekhar commented 7 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.

Mamtak1811 commented 7 years ago

How do we use these properties to set minimum and maximum date? Please elaborate

hackiftekhar commented 6 years ago

like [textField.datePicker setMinimumDate:minimumDate] @Mamtak1811

Hardiktspaceo commented 5 years ago

@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 ?

hackiftekhar commented 5 years ago

Yes, you can use my suggestion using v1.1.1

Hardiktspaceo commented 5 years ago

In swift i can't set maximum date as per your suggestion given in objective c. Can you provide some example for swift version ?

hackiftekhar commented 5 years ago

Are you able to access textField.datePicker object?

Hardiktspaceo commented 5 years ago

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.

hackiftekhar commented 5 years ago

Thanks sir!