UIDatePicker hours are disabled

Posted by user112175 on Stack Overflow See other posts from Stack Overflow or by user112175
Published on 2010-04-17T21:31:39Z Indexed on 2010/04/17 21:43 UTC
Read the original article Hit count: 490

Filed under:
|

I have a UIDatePicker object and I am setting it up as follows but for some reason my hours field is disabled on the current date but minutes are not. Not exactly sure what I am missing, any help would be appreciated.

UIDatePicker *picker = [[UIDatePicker alloc] init];
picker.date = [NSDate dateWithTimeIntervalSinceNow:DATE_MIN_SECONDS_OFFSET];
picker.minimumDate = [NSDate dateWithTimeIntervalSinceNow:DATE_MIN_SECONDS_OFFSET];

This is what My datepicker looks like http://img.skitch.com/20100417-d75gq78pjwjb9d37ku9msmcduc.png

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uidatepicker