I am using UIDatePicker
to select a date. When loading the view date picker minimum date was set with current date, For my specification I need to know is there any modification done in UIDatePicker
or not.
if ([[date_picker minimumDate] compare:[date_picker date]] != NSOrderedSame) {
printf("value modified");
}
I have tried with the above condition but its always not matching even though I have not modified the date. Am I doing anything wrong? How do I find that out?