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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:16:14+00:00 2026-05-27T00:16:14+00:00

I have a UITable containing some customs UITableCells. Those cells contain a few UILabels

  • 0

I have a UITable containing some customs UITableCells. Those cells contain a few UILabels and a UITextField. The datasource of the table comes from a main controller’s property. (This controller is also the delegate and the dataSource for the table).

Here’s a simplified screenshot of the UI:

schreenshot

Now, I need to update “on the fly” the content of all the UILabels when the user edits one of the UITextFields.
To do so, at the I am listening to the “Editing Changed” event at the UITextField level. This triggers the following action:

- (IBAction) editChangeHandler: (id) sender {
    MyAppDelegate *delegate = [[UIApplication sharedApplication] delegate];
    [[delegate.viewController.myDataSourceArray objectAtIndex:self.rowIndex] setANumber: [theTextField.text intValue]];
    [delegate.viewController reloadRows];
}

The reloadRows method in the viewController is as such:

- (void) reloadRows {
    NSLog(@"called reloadRows");
    //perform some calculations on the data source objects here...
    [theUITable reloadData];
}

My problem here is that whenever the user changes the value in the field, the reloadRows method is successfully called, so is apparently the reloadData but it also causes the keyboard to be dismissed.

So in the end, the user can only touch one key when editing the TextField before the keyboard is dismissed and the table reloaded.

Does anybody knows a solution to this or have experienced the same issue?

  • 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-27T00:16:15+00:00Added an answer on May 27, 2026 at 12:16 am

    You can selectively modify rows as needed, rather than updating the whole table (doing this is updating the cell you are currently working in, resetting its state).

    Look at:

    - (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation
    

    Additionally, you can edit those cells directly by obtaining the cell via:

    - (UITableViewCell *)cellForRowAtIndexPath:(NSIndexPath *)indexPath
    

    if you don’t want to have to rebuild those cells.

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

Sidebar

Related Questions

I have a UITable with few custom cells which contains text fields. However when
I want to remove a IBOutlet UIimage from certain table cells: I have a
I am a newbie. I have written some code for UITable but I am
I have UITable which contains some UIButtons. I would like a way to use
I have a UITable View with a textfield that is editable right on the
I have a subview over my UITable that is used as a busy view.
I have a question regarding uitable view. I am implementing an app which is
I have a UITable that has a UISearchDisplayController . The UITable is less than
I have my uitable data being populated for the current section inside numberOfRowsInSection .
I have some issues with pushViewController. Essentially so far I have a class (UIViewController)

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.