开发者

UIDatePicker return value data type question

I want to pass back data from a UIDatePicker that is setup like this:

UIDatePicker *pickerView = [[UIDatePicker alloc] init];
pickerView.datePickerMode = UIDatePickerModeCountDownTimer;

The picker mode is set to be the count down timer. What type of data type do I need to pass back to the delegate?

I was thinking it would be something like pickerView.value But I am not seeing it. Do I need to get the pickerView.date and cast it as an NSNumber or something?

I just want to setup a timer based on the v开发者_运维知识库alue I am getting back from the UIDatePicker...


Use pickerView.countDownDuration, which returns an NSTimeInterval (a double).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜