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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:31:25+00:00 2026-06-13T12:31:25+00:00

What I got is a TableView which is using Prototype Cells and an array

  • 0

What I got is a TableView which is using Prototype Cells and an array feeding the dataSource – depending on the datasource, I’m using a certain Table View Cell identifier to build the cells. (Please correct me if I’m doing something wrong here – I am new to iOS dev and am looking for best practices wherever possible 🙂

Anyway, one of the Table View Cell I’ve created in Storyboard has a UITextField. I have it set up in Storyboard GUI that the Return Key is set to ‘Done’ and ‘Auto-enable Return Key’ is checked. I’ve then gone into my controller and used the following code:

- (BOOL)textFieldShouldReturn:(UITextField *)textField {
    [textField resignFirstResponder];
    return YES;
}
- (void)textFieldDidEndEditing:(UITextField *)textField{
    [textField resignFirstResponder];
    NSLog(@"finished change...");
}

I’ve also got a ‘Editing Did End’ event linked to my controller which is coded to output to NSLog.

The Log outputs the text placed in textFieldDidEndEditing and my event function when I hit Return or Done. However, when I select a table cell, or start moving the slider nothing happens – meaning the keyboard is still on the screen.

Is there a way to resolve this?

Also, whilst I’ve been working on this Prototype Cells, it seems to be rather laborious for what I need. Basically all I require is a basic table to allow the user to edit some settings, so there would be:

2 textfields that can be edited,
1 slider,
2 switches

I placed all of this in a Static UITableView however it did not appear – this is due to a restriction on this type of table requiring a UITableViewController. Is there a way around this?

Sorry for the long post – I’m still getting my head around iOS dev but I am enjoying it so far 🙂

Any help would be greatly 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-06-13T12:31:26+00:00Added an answer on June 13, 2026 at 12:31 pm

    I usually keep an ivar around to keep track. It lets me conveniently dismiss the keyboard based on all kinds of events:

    @interface ViewController () {
       UITextField *_textFieldBeingEdited;
    } 
    @end
    
    - (void)textFieldDidBeginEditing:(UITextField *)textField {
       _textFieldBeingEdited = textField;
    }
    
    - (void)textFieldDidEndEditing:(UITextField *)textField{
       // no need to resignFirstResponder here.
       _textFieldBeingEdited = nil;
    }
    
    - (void)tableView:(UITableView *)tableView 
              didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
       if (_textFieldBeingEdited) {
         [_textFieldBeingEdited resignFirstResponder];
       }
       ...
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a document based App using Core Data, and have a tableView which
I've got a view with a TableView and an NSFetchedResultsController. I'm using a ASINetworkQueue
i ve got an imageview ..below the imageview is a table view..which loads the
I am trying to create a table view which uses two types of cells
I have got a table view which is populated by json webservice url.I am
I've got a tableView in a view which is a subview to my MainViewController.
I'm building an iphone app and I've got a table view with some textfields
I got an iOS app with table view. When i select rows several times,
I've got a view that has a table view inside. I've got a viewController
I've got a detail view that consists of a table view with a few

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.