当我点击日期选择器的完成按钮时,我的文本字段中没有默认日期

时间:2013-02-11 06:46:05

标签: ios6

NSDateFormatter * df = [[NSDateFormatter alloc] init];

df.dateStyle = NSDateFormatterMediumStyle;


txtSelectNiche.font = [UIFont boldSystemFontOfSize:17.0];

[txtSelectNiche setInputView:(UIView*)[df stringFromDate:datePicker.date]];

txtSelectNiche.text = [NSString stringWithFormat:@“%@”,                     [df stringFromDate:datePicker.date]];

txtSelectNiche.textAlignment = UITextAlignmentCenter;

0 个答案:

没有答案