开发者

UIDatePicker return value data type question

开发者 https://www.devze.com 2023-01-16 03:34 出处:网络
I want to pass back data from a UIDatePicker that is setup like this: UIDatePicker *pickerView = [[UIDatePicker alloc] init];

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

精彩评论

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