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 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 a client running a WebLogic 11g install on a Windows Server machine
Does the CloudMade API have the ability to control the z-order or z-index of
For some reason i can't seem to get this right ok i have 2
I am trying to detect touches, but the touchesBegan method is not being called.
Can someone give me a clear, concise definition of the difference between a programming
I'm kinda new to this topic so please be gentle ;) I'm attempting to
I am currently working on an application for the health care industry for my
This is my RSS template that I load into my simplexml object. I want
I am started working on resume retrieval(document) component based on lucene.net engine. It works

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.