创建日期选择器
迅速
let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0, width: 320, height: 200)
Objective-C
UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(x: 0, y: 0, width: 320, height: 200)];
let datePicker = UIDatePicker(frame: CGRect(x: 0, y: 0, width: 320, height: 200)
UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(x: 0, y: 0, width: 320, height: 200)];