iOS 日期时间控件

    UIDatePicker *picker        =   [[UIDatePicker alloc]initWithFrame:CGRectMake(0, 0,[UIParam widthScreen] ,50 )];

    picker.minimumDate          =   [NSDate date];
picker.maximumDate = nil;
picker.backgroundColor = [UIColor whiteColor];
picker.layer.borderColor = [kUIColor(238, 238,238) CGColor];
picker.layer.borderWidth = 1;
[picker addTarget:self action:@selector(dateChange:) forControlEvents:UIControlEventValueChanged];
NSLocale *locale = [[NSLocale alloc] initWithLocaleIdentifier:@"zh_CN"]; picker.locale = locale; //设置日期的显示格式
picker.datePickerMode = UIDatePickerModeDateAndTime;
上一篇:.net程序员转行做手游开发经历(四)


下一篇:Apache2 MPM 模式了解