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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:57:00+00:00 2026-05-25T12:57:00+00:00

HI stackoverflow friends I have situation that when i click on a button it

  • 0

HI stackoverflow friends

I have situation that when i click on a button it will generate dynamically a uitextfield with a remove button. If I don’t need that text field then i click the remove button it will goes off.More over the user can generate infinite no: of these pair. So that I think it should be add in a scrollview. Is it possible this. Can anyone know how to do this?

Any help would be appreciable.

  • 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-25T12:57:00+00:00Added an answer on May 25, 2026 at 12:57 pm

    In your TableView cellForRowAtIndexpath method:

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
    { 
        static NSString *CellIdentifier = @"Cell"; 
        UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; 
        UITextField* textField;
        if (cell == nil) 
        { 
          cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; 
          textField = [[UITextField alloc] initWithFrame:CGRectMake(10,20,30,30)];
          textField.tag = 10; 
          [[cell contentView] addSubView:textField];
          [textField release];
        }
        else
        {
          textField = (UITextField *)[cell.contentView viewWithTag:10];
        }
    
        // Do something with TextField
        return cell;
    }
    

    You can just have one add button on the navigation bar across top right that would add to NSMutableArray addObject textField to it and reloadTable. Inside cellForRowAtIndexPath get objectAtIndex for that array and add to cell contentView. To delete the cells you can implement swipe to delete for cells…

    - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
    {
         // If row is deleted, remove it from the Array.
         if (editingStyle == UITableViewCellEditingStyleDelete)
         {
          // delete your data item here
         }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi Stackoverflow friends, I need an appliaction that ,capture an image using camera and
Dear Friends from Stackoverflow, Please help me with a problem that i'm having when
I realize these questions have been asked before on Stackoverflow, but now that FBML
this is my algorithm that I have written it with my friends (which are
I know xcode don't have radio Button so I try to add a custom
Hi stackoverflow friends, I need to take a picture using camera and after takin
Hello my StackOverflow friends. I have been doing wxPython tutorials and reading the documentation,
StackOverflow user jolson had a very nice piece of code that exemplifies how one
StackOverflow, you're my only hope! I am unfortunate enough to have inherited an ASP.NET
In StackOverflow podcast no. 19 , Joe describe Fogcreek's decision to have one database

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.