syshen / FlatDatePicker

MIT License
158 stars 23 forks source link

When passing NSDate to setDate, min date on picker is selected #15

Closed jmlw closed 10 years ago

jmlw commented 10 years ago

I am passing an NSDate* to two pickers, one in Date mode and one in Time mode. Date is initialized to some non-null date (e.g. May 14, 2014 3:52 PM). When I use method setDate: or setDate:animated:, the date and time picker set selectors to the minimum allowed date and time (e.g. Jan 01, 2000 1:00 AM). This was previously only happening on 64 bit devices, but is now happening on all devices in simulator running iOS 7 and 7.1. Testing has only been done in the simulator so I cannot confirm if the issue occurs on device as well.