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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:39:58+00:00 2026-05-25T06:39:58+00:00

i am experiencing some weird problems with my UITableView. I have a Grouped TableView

  • 0

i am experiencing some weird problems with my UITableView.
I have a Grouped TableView with 1 row per section. There is a Textfield in each row.
When i am not forced to scroll, everything is displayed correct.

But if i have to scroll, the previously hidden cells are messed up. they do contain a textfield, but there are many text labels laying over each other.

Cell http://dcsl.info/b/Untitled.png
Any advice?

- (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];
}

// Configure the cell...
if(indexPath.section < [sectionArray count]) {
    UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(20, 10,580, 31)];
    textField.tag = indexPath.section + 22;
    textField.autocorrectionType = UITextAutocorrectionTypeNo;
    textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
    textField.delegate = self;
    textField.text = [item.rechnerValues objectAtIndex:indexPath.section+1];

    [cell.contentView addSubview:textField];
}
return cell;
}
  • 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-25T06:39:59+00:00Added an answer on May 25, 2026 at 6:39 am
    - (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];
    
    
            UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(20, 10,580, 31)];
            textField.tag = indexPath.section + 22;
            textField.autocorrectionType = UITextAutocorrectionTypeNo;
            textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
            textField.delegate = self;
            textField.text = [item.rechnerValues objectAtIndex:indexPath.section+1];
    
            [cell.contentView addSubview:textField];
    
            [textField release];
    
        }
        else{
                // Configure the cell...
            if(indexPath.section < [sectionArray count]) {
    
                UITextField *textFld=(UITextField*)[cell.contentView viewWithTag:indexPath.section + 22];
    
                if(textFld){
    
                    textFld.text=[item.rechnerValues objectAtIndex:indexPath.section+1];
    
                }            
    
    
    
            }
        }
        return cell;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm experiencing some weird problems with SESSION variables on my PHP/Ajax online shopping cart.
I'm experiencing some really weird object behaviours at the moment. I have this template
I'm experiencing some weird behavior with SELECT statements in sqlite. There is one table
I'm currently working with jQuery 1.4.2 and jQuery UI 1.8.2. I'm experiencing some weird
I am experiencing some performance problems when creating a very simple Python HTTP server.
I'm experiencing some problems with breaking my code to reusable parts using templates and
I'm debugging a service that's experiencing some problems on start-up. To aid me in
I am experiencing something weird and have a workaround already, but I don't think
I am experiencing some weird encoding behaviour in my ASP.NET MVC project. In my
I'm experiencing a weird issue in which I need to have a default constructor

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.