I'm using a UIDatePicker in a modal view, to select a date. I found that if the view is closed while the date picker is still rolling, I got a EXC_BAD_ACCESS.
How can I detect of the date picker is rolling when the user tab a button?
I had two ideas:
1) detect if the value has changed with this:
[myDatePicker addTarget:self action:@selector(valueChanged:) forControlEvents:UIControlEventValueChanged];
But I would need to be able to detect if the value WILL change.
2) check if the date is valid, but when the date picker is rolling, the previous date is returned, and of course is valid.
Any ideas?