syshen / FlatDatePicker

MIT License
158 stars 23 forks source link

Can't load date automatically #1

Closed AlexanderZubkov closed 11 years ago

AlexanderZubkov commented 11 years ago

Hi, i've added SSFlatDatePicker to the view programmatically. I try to load today's date but it always loads "1 January 1913". [theDatePicker setDate:[NSDate date] automatically:YES]; - doesn't help [theDatePicker setDate:[NSDate date]]; - doesn't help.

When nslog the [NSDate date] it gives current date. Tried to load the date via NSDateComponents. NSLog gives the loaded data but datePicker not.

Any help please.

syshen commented 11 years ago

You may try to set the date in viewDidAppear for now.

But I think this cand be fixed in SSFlatDatePicker to allow you to set date in any phase, and I will fix it.

AlexanderZubkov commented 11 years ago

Thank you. That's enough for now.

syshen commented 11 years ago

this issue is fixed in v0.0.4, check the latest cocoapods