我想在UIDatePickerView中使用计时器? 我想写代码?
请帮助我。
答案 0 :(得分:0)
将UIDatePickerView
的模式更改为计时器....按照我在下面的操作进行操作
// Add the picker
UIDatePicker *pickerView = [[UIDatePicker alloc] initWithFrame:CGRectMake(0,100,0,0)];
[pickerView setDatePickerMode:UIDatePickerModeCountDownTimer];
[self.view addSubview:pickerView];
[self.view setBounds:CGRectMake(0,0,320, 500)];
[pickerView release];
祝你好运!