Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4576888
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T20:16:09+00:00 2026-05-21T20:16:09+00:00

I know this question has been posted on this forum before: How do you

  • 0

I know this question has been posted on this forum before:
How do you get the time interval for UIDatePicker in UIDatePickerModeCountDownTimer mode?

However, the answer mentioned there isnt working for me and i am not able to comment on the earlier post hence this new question.

I have a simple application where i have a UIDatePicker in CountDownTimer mode. I want to retrieve whatever value the user sets it to and store it or print it to log.

    - (IBAction) datePickerValueDidChange:(id)sender {
      NSLog(@"datePicker.countDownDuration: %f", timerPicker.countDownDuration);
    }

the value being printed is 0 always. Dnt know where i am going wrong so any help will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T20:16:09+00:00Added an answer on May 21, 2026 at 8:16 pm

    You haven’t posted much code, but my guess would be that your picker has a different name than timerPicker.

    Alternately you’ve got a local instance variable conflict with your picker property and that referring to it as self.timerPicker.countDownDuration will do the trick.

    A third option is that you’ve either not connected and/or declared your viewController as being the picker’s delegate, or if you have then you haven’t included the delegate declaration in your interface (though the latter is less likely because you should get a noticeable build-time error).

    Otherwise you’ll need to post some more code, including where you declare it and where you set its values.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this question has been posted here before, and I've trawled through as
I know this question has been asked before, but I ran into a problem.
I know this question has been asked a bit before. But looking around I
I know this specific question has been asked before , but I am not
I know this exact question has been asked , but the solution posted there
I know this question has been asked before but I have a design question
I don't know if this question has been asked before, but I'll go through
I know this question has been asked and answered in several ways, but none
This question has been discussed in two blog posts ( http://dow.ngra.de/2008/10/27/when-systemcurrenttimemillis-is-too-slow/ , http://dow.ngra.de/2008/10/28/what-do-we-really-know-about-non-blocking-concurrency-in-java/ ),
I know this questions has come up in various guises before, but this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.