UIDatePicker in UIDatePickerModeCountDownTimer mode: how to get/set the hours and minutes via code?

Posted by R31n4ld0 on Stack Overflow See other posts from Stack Overflow or by R31n4ld0
Published on 2010-03-13T16:09:20Z Indexed on 2010/03/13 16:15 UTC
Read the original article Hit count: 400

Filed under:
|
|

Hello, guys.

How to get/set the hours and minutes via code from a UIDatePicker in UIDatePickerModeCountDownTimer mode?

The situation:

  • I have an interface in that a user selects just hours and minutes. Then, he saves the information (so, I have to get the hours and minutes from UIDatePicker via code to save in a DB).

  • When the user is editing the information saved previously, I want to start the interface with the saved hours/minutes (so, I have to set the UIDatePicker hours and minutes retrieved from DB via code).

How do I do that with the UIDatePiker in UIDatePickerModeCountDownTimer mode?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uidatepicker