如何在计时器中使用ui datepicker视图?

时间:2011-02-25 05:19:23

标签: iphone xcode

我想在UIDatePickerView中使用计时器? 我想写代码?

请帮助我。

1 个答案:

答案 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];

祝你好运!