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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:03:42+00:00 2026-06-05T11:03:42+00:00

I have three UITextFields inside of a UITableView (3 separate rows). The first two

  • 0

I have three UITextFields inside of a UITableView (3 separate rows). The first two are standard UITextFields which require text input but the third requires a data entry and is associated with a UIDatePicker.

Problem Statement:
When the screen loads, the third text field automatically begins editing and pops up the date picker. This is annoying. I just want the screen to wait for the user to begin input before doing anything. Please find below my viewDidLoad code. Your help / insight is much appreciated

- (void)viewDidLoad
{
[super viewDidLoad];

[scrollView setContentSize:CGSizeMake(320, 910)];

expirationDatePicker.hidden = YES;
expirationDatePicker.date = [NSDate date];
[expirationDatePicker addTarget:self
                         action:@selector(changeDateValue:)
               forControlEvents:UIControlEventValueChanged];

[self configureView];
}

- (void)configureView
{
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);  
    NSString *documentsPath = [paths objectAtIndex:0]; //Get the docs directory 
    NSString *filePath = [documentsPath stringByAppendingPathComponent:[self.detailItem cardName]];
    filePath = [filePath stringByAppendingPathExtension:@".png"];
    NSData *pngData = [NSData dataWithContentsOfFile:filePath];
    imgPickerButton.imageView.image = [UIImage imageWithData:pngData];
}

Attached is the screenshot taken immediately after the screen loads. You can see that the third text field has entered editing mode.

Screenshot of textfield

  • 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-05T11:03:45+00:00Added an answer on June 5, 2026 at 11:03 am

    Ok – found the problem. In my tableviews I have custom UITableViewCells and in those custom cells, I for some reason had this method –

    - (void)setSelected:(BOOL)selected animated:(BOOL)animated
    {
        [super setSelected:selected animated:animated];
        [self.textField becomeFirstResponder];
    }
    

    This was causing the textfield in the individual tableviewcells to automatically enter editing mode. Once I deleted this piece of code, it stopped doing that.

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

Sidebar

Related Questions

I have three UITextFields. Two of them represent a certain number value. The third
I have a view with a button and three UITextFields. The view's background is
I have three column in my datagridview .One is text ,one is Combo and
I have a strange problem with UITableView and UITextField inside the cell (as subview).
I have a UIControl type screen which has a fullscreen UIScrollView and UITextFields on
UITableViewController doesn't scroll automatically anymore? When you have a text field inside a UITableViewController
I have a UITableView with about 20 cells, in each cell there are three
I'm attempting to have a UITableView that I can dynamically add and remove rows
I am creating a project in which I have three UITextField s and one
HI all, Are there any premade/ready to use UITextFields and UITexView which have 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.