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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:38:35+00:00 2026-05-23T15:38:35+00:00

I need to create a form so that the user can edit all cells

  • 0

I need to create a form so that the user can edit all cells of the table (about 20).

Can I do it with UITableViewCellStyleValue2? If so, how?

Or do I need to create a subclass of UITableViewCell?

In terms of arquitect, maybe it’s better to create a subclass, but anyway, i’ll need to edit the table, the textlabel.text property.

What’s the best way? And how can I do it?

Thanks,

RL

  • 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-23T15:38:36+00:00Added an answer on May 23, 2026 at 3:38 pm

    I recommend adding your own views to the cell’s contentView, like so:

    - (UITableViewCell *)tableView:(UITableView *)tv
        cellForRowAtIndexPath:(NSIndexPath *)indexPath;
    {
        UITableViewCell *cell;
        {
            NSAutoreleasePool *arp = [[NSAutoreleasePool alloc] init];
    
            cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault
                    reuseIdentifier:nil];
            cell.selectionStyle = UITableViewCellSelectionStyleNone;
            cell.backgroundColor = [UIColor whiteColor];
    
            UILabel *lbl = [[UILabel alloc] init];
            lbl.frame = CGRectMake(3, 2, 160, tv.rowHeight - 4);
            lbl.backgroundColor = [UIColor clearColor];
            lbl.textColor = [UIColor blackColor];
            lbl.font = [UIFont boldSystemFontOfSize:16];
            [cell.contentView addSubview:lbl];
            [lbl release];
    
            if(indexPath.row == 0)
            {
                lbl.text = @"Cell Name";
    
                UITextField *textField;
                textField = [[UITextField alloc] initWithFrame:CGRectMake(170,
                            tv.rowHeight / 2 - 10, 100, 20)];
                textField.borderStyle = UITextBorderStyleNone;
                textField.textColor = [UIColor blackColor];
                textField.font = [UIFont systemFontOfSize:14];
                textField.placeholder = @"Placeholder";
                textField.backgroundColor = [UIColor clearColor];
                textField.autocorrectionType = UITextAutocorrectionTypeNo;
                textField.keyboardType = UIKeyboardTypeDefault;
                textField.returnKeyType = UIReturnKeyDone;
                textField.tag = indexPath.row;
                textField.delegate = self;
    
                [cell.contentView addSubview:textField];
                [textField release];
            }
    
            ...
    
            [arp drain];
        }
    
        return [cell autorelease];
    }
    

    This is just a demonstration but you can see where you need to extend it to support additional cells, etc.

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

Sidebar

Related Questions

I need to create a form that has many of the same fields, that
I need to create a form with, half linear view (textboxes and dropdownlists in
I need to create a full-text search form for a database of emails /
I need to create a Gold bar for my windows form similar to what
I need to create an XML schema that looks something like this: <xs:element name=wrapperElement>
I needed to create a custom select list for the user registration page that
So I have a form that I want the user to use to update
When you create a form element with CakePHP like so: echo $this->Form->input('User.first_name'); You start
I need to create an appointment with multiple recipients in MS Dynamics. Note that
I am currently working on a form that displays information about a specific product

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.