开发者

UIDatePicker hours are disabled

开发者 https://www.devze.com 2022-12-27 11:49 出处:网络
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

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-d75gq7开发者_运维问答8pjwjb9d37ku9msmcduc.png


It appears to be a known bug.

0

精彩评论

暂无评论...
验证码 换一张
取 消