标签: ios datepicker subview
我正在尝试将日期选择器添加到我的iPad应用程序中。如何将其添加为子视图?
答案 0 :(得分:1)
这是我使用的
UIDatePicker *datePicker = [[UIDatePicker alloc] initWithFrame:CGRectMake(0, 40, 0, 0)]; // ... populate your date picker and format it as you see fit. [self.view addSubview:datePicker];