0

I have a button in my view with the UIDatePickerModeCountDownTimer. How do I actually get it to start counting down? Examples would be fantastic.

Coltrane
  • 165
  • 1
  • 2
  • 12
  • see details here http://stackoverflow.com/questions/11501793/uidatepicker-in-uidatepickermodecountdowntimer-mode-how-to-change-to-minutes-an – Shamsudheen TK Jul 31 '12 at 05:52

1 Answers1

3

You can create a datasource for you minute-seconds picker. It has two Components: minute and seconds. You have to implement some methods in UIPickerViewDelegate and UIPickerViewDataSource Protocols.

Apple's sample code UICatalog.app is for your reference. You can find there is a sample for how to create a customized picker.

iAndroid
  • 951
  • 7
  • 18
  • I'm having trouble figuring out how to create a data source. Also, within the sample code you provided, there is no button or way to start the countdown. Could you provide a more detailed explanation for how to create the datasource? I've got the required methods from UIPickerViewDelegate and UIPickerviewDataSource in my implementation. Thanks for the help you've provided so far. – Coltrane Jul 31 '12 at 22:19