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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:22:37+00:00 2026-05-13T09:22:37+00:00

After quite a long time perusing the web i have decided to come here

  • 0

After quite a long time perusing the web i have decided to come here as i usually have my questions answered super speedy and super well on Stack Overflow!

I am attempting to complete the following and would be grateful of any suggestions or pointers in the right direction:

  • Display a UITableView
  • When a “+” button is pressed a UITextField is added to a row of the UITableView
  • The user can type a string into this field
  • If the user selects the “+” Button again another UITextfield is added to the next row. (You get the idea)
  • When the user is done adding UITextFields and filling them in they can hit a “Save” button at which point all entries in each row are saved to an array.

Any suggestions regarding this would be greatly appreciated

Thanks!

Tom

  • 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-13T09:22:37+00:00Added an answer on May 13, 2026 at 9:22 am

    This pseudocode might be a starting point:

    // define an NSMutableArray called fields
    
    - (IBAction)addField:(id)sender {
        // create a new text field here and add it to the array
        // then reload data
    }
    
    - (IBAction)save:(id)sender {
        for(UITextField *textField in fields) {
            // whatever you have to do
        }
    }
    
    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        // you have as many rows as textfields
        return [fields count];
    }
    
    - (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:CellIdentifier] autorelease];
        }
        // Set up the cell...
        // For row N, you add the textfield N to the array.
        [cell addSubview:(UITextField *)[fields objectAtIndex:indexPath.row]];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have modeled an AJAX search after this example a long time ago. I
I'm doing a small project in C after quite a long time away from
For quite a long time , i have been working with tortoise SVN ,
I have a backroundrb scheduled task that takes quite a long time to run.
I have a task that takes quite a long time. So I would like
I'm looking after this for a long time now. I just can't find any
Important: This question is getting quite long, if this is the first time you're
Long time listener, first time caller here. Ok, I apologize for the length of
I have built an ASP.NET MVC app some time ago, and after a few
I'm new to linux kernel programming, and for quite a long time I'm trying

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.