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

  • SEARCH
  • Home
  • 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 6359745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T23:33:35+00:00 2026-05-24T23:33:35+00:00

I am making an iPhone app in which I am using date time picker

  • 0

I am making an iPhone app in which I am using date time picker and displaying the selected the date in a text filed. Now I want to update the textfield as there is change in selected date in date picker.

hOw can i do this. Give me some solution.

Thanks in advance.

  • 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-24T23:33:36+00:00Added an answer on May 24, 2026 at 11:33 pm

    You can be notified of UIDatePicker changes by simply adding a target & action for the control event UIControlEventValueChanged. Check the UIDatePicker reference for more details.

    A simple implementation would look something like this:

     [picker addTarget:self 
                action:@selector(datePickerValueChanged:)
      forControlEvents:UIControlEventValueChanged];
    

    and then…

       - (void)datePickerValueChanged:(id)sender{
            UIDatePicker *picker = (UIDatePicker *)sender;
            NSString *dateString;
    
            dateString = [NSDateFormatter localizedStringFromDate:[picker date]
                                                        dateStyle:NSDateFormatterMediumStyle 
                                                        timeStyle:NSDateFormatterNoStyle];
    
            [textField setText:dateString];
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making an iphone app, in which I am using sqlite. In one
I am making an application (iPhone app) which gets information (jokes) from an RSS
I am using CoreData with iPhone SDK. I am making a notes app. I
Im making an app for the iphone using cocos2d and i am trying to
I am making an IPhone app in which userid and password is required in
i m making an iphone app in which when same person calls you and
I am making an iPhone app in which on one of the UIWebView I
I'm making an iPhone app where I want to save state of the Application.
I am making an iPhone app which has its database on the web server.
I am making an iPhone and iPad app, which has a requirement for iAds.

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.