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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:08:42+00:00 2026-06-12T18:08:42+00:00

I have a date picker which is supposed to switch from UIDatePickerModeDateAndTime to UIDatePickerModeTime

  • 0

I have a date picker which is supposed to switch from UIDatePickerModeDateAndTime to UIDatePickerModeTime and vice-versa, depending on the selected table view cell. When the view gets loaded the default mode is UIDatePickerModeDateAndTime, and I can change the picker value without any problem. But after selecting the next cell the UIDatePickerModeTime is set, and from this point on it isn’t longer possible to change the picker’s value: it crashes with EXC_BAD_ACCESS and no log whatsoever.

Below the significant code:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
  if (indexPath.row == 0) {
    self.dateTimePicker.minimumDate = [NSDate date];
    self.dateTimePicker.datePickerMode = UIDatePickerModeDateAndTime;
  }
  else {
    self.dateTimePicker.minimumDate = nil;
    self.dateTimePicker.datePickerMode = UIDatePickerModeTime;
  }
}

What am I missing here?

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-06-12T18:08:43+00:00Added an answer on June 12, 2026 at 6:08 pm

    There was nothing wrong with my code, it was a bug of iOS 6 beta 3.
    It got automatically fixed once I’ve installed the final iOS 6.0 release.

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

Sidebar

Related Questions

I have a UIViewController which has a table view and a date picker view.
I have a pop up date picker which insert a selected date into a
I have a string variable which stores date from date picker but when I
i have a textbox which is filled with date from a datepicker(calendar is accessed
I have a script for dynamic javascript date picker, taken from here . Please
I have a standard Jquery date picker which shows 2 textboxes. One textbox has
I have a php page which has a chart, a date picker(calendar) and a
I have a SharePoint Date Picker Control which is used to select a BirthDate
I need to get the date/time format produced from a date / picker which
I have a simple table which has a some information displayed. To view the

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.