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 6572091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:57:46+00:00 2026-05-25T14:57:46+00:00

I have created UIDatePicker and added target for event UIControlEventValueChanged . Default value of

  • 0

I have created UIDatePicker and added target for event UIControlEventValueChanged. Default value of the date picker is set to the current date.

Date picker is shown when I click into text field. Then user can select date, click outside the view controller with the date picker, it disappears and text field is set to the selected date.

Problem is when the user wants to select current(default) date. It is necessary to change value from and back to the default value. It is because the date picker fires UIControlEventValueChanged event. I want also to let the user decide, if he wants to fill the date value (if he just clicks outside the view control with date picker).

How is it possible to let the user select the default value of the date picker without changing the value from and back to the default value?

  • 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-25T14:57:47+00:00Added an answer on May 25, 2026 at 2:57 pm

    Is it acceptable for you to just set the date in the text field as soon as the text field is shown? That way the user doesn’t need to do anything if the current date is what they want in the text field.

    If the text field needs to start blank for some reason, then you could have the current date show in the text field as soon as the user first taps inside it (i.e. at the same time as you display the UIDatePicker).

    If neither of these are acceptable, have you tried setting a target action for another control event, such as UIControlEventTouchDown / UIControlEventDragInside / UIControlEventEditingDidBegin?

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

Sidebar

Related Questions

I have created a method and connected it with value changed event of UIDatePicker,
I have created a date picker programatically in my application . when i select
I've created a UIDatePicker in my app and I also have support for several
Have created an attribute property in TableView1.h and pushing that attributes value to another
I have created a windows service which is set to start automatically. This service
Have created an app-id as normal. Then created an app-store distribution profile...as normal. Set
I am developing an asp.net page/application. I have created a textbox that i set
I am using the jquery ui datepicker in my app. I have created an
Have created a c++ implementation of the Hough transform for detecting lines in images.
I have created a template for Visual Studio 2008 and it currently shows up

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.