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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:48:27+00:00 2026-05-18T23:48:27+00:00

I have scoured the internet looking for a good tutorial or posting about having

  • 0

I have scoured the internet looking for a good tutorial or posting about having a UITableView populated with a UITextField in each cell for data entry.

I want to keep track of each UITextField and the text written within it while scrolling. The tableView will be sectioned. I have been using a custom UITableViewCell but I’m open to any method.

Also, is it possible to use the textFields as ivars?

If any of you could point me in the right direction, it would be greatly appreciated.

Thank you 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-05-18T23:48:27+00:00Added an answer on May 18, 2026 at 11:48 pm

    To solve your problem you have to maintain an array, with some number (number of textFields you added to all cells) of objects.

    While creating that array you need add empty NSString objects to that array. And each time while loading the cell you have to replace the respected object to respected textField.

    Check the following code.

    - (void)viewDidLoad{
        textFieldValuesArray = [[NSMutableArray alloc]init];
        for(int i=0; i<numberofRows*numberofSections; i++){
            [textFieldValuesArray addObject:@""];
        }
    
    }
    
    - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
        // Return the number of sections.
        return numberofSections;
    }
    
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        return numberofRows;
    }
    
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
        static NSString *CellIdentifier = @"Cell";
    
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
         cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier];
    
         CustomTextField *tf = [[CustomTextField alloc] initWithFrame:CGRectMake(5,5,290,34)];
         tf.tag = 1;
         [cell.contentView addSubView:tf];
         [tf release];
        }
        CustomTextField *tf = (CustomTextField*)[cell viewWithTag:1];
        tf.index = numberofSections*indexPath.section+indexPath.row;
        tf.text = [textFieldValuesArray objectAtIndex:tf.index];
    
        return cell;
        }
    
    - (void)textFieldDidEndEditing:(UITextField *)textField{
    
        int index = textField.index;
        [textFieldValuesArray replaceObjectAtIndex:index withObject:textField.text];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have scoured the internet looking for a solution to this and I am
I have scoured the internet looking for an answer to this question and can't
I have scoured the internet to find which CMS's run on CloudSites and the
I have scoured for 2 hours now across the internet, I have found courses
I have scoured the Internet for an answer to this. I have an array
I have scoured the web for a decent explanation of the routing syntax in
I've scoured the Internet but my search-foo must not work if it's out there
So I have learned that that the Microsoft.Jet.OLEDB.4.0 data provider for querying data sources
I've scoured the internet for help on this problem but I need help. This
I have scoured the tubes to try and find a way to do this,

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.