Jonas Gardner
Jonas Gardner

Reputation: 2468

Limiting the hour range for UIDatePicker in UIDatePickerModeCountDownTimer mode?

I'd like to limit the range of the hours shown in the UIDatePicker in UIDatePickerModeCountDownTimer mode from the current range of 0 - 23 to 0-6.

Is this feasible or do I have to roll out my own UIPicker control?

Upvotes: 1

Views: 2133

Answers (1)

Michael Dautermann
Michael Dautermann

Reputation: 89569

Check out UIDatePicker's countDownDuration property.

I believe you can set the maximum value of the countdown there. I'd recommend 6 * 60 * 60 (six hours * sixty minutes * sixty seconds).

Upvotes: 3

Related Questions