views:

40

answers:

1
CGRect pickerFrame = CGRectMake(0, 120, 0, 0);
    datePicker = [[UIDatePicker alloc] initWithFrame:pickerFrame];
    datePicker.datePickerMode = UIDatePickerModeCountDownTimer;

according to my code i set UIDatePicker to present as UIDatePickerModeCountDownTimer mode how can i get the value as minutes from uidatepicker ?

A: 

To get the number of seconds that has been selected, do:

NSTimeInterval numberOfSeconds = datePicker.countDownDuration;

Then you can get minutes by dividing by 60.

Emil
thank you for your help Emil
RAGOpoR