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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:27:38+00:00 2026-05-25T18:27:38+00:00

Im having an interesting issue in viewing cells in tableview: At first when the

  • 0

Im having an interesting issue in viewing cells in tableview:
At first when the tableview is loaded the cells look a bit blurry, the weird thing is that when showing and then hiding the keyboard they’ll be fixed till sliding the table again (dequeuing new cells).
Before

After

In general there are 3 types of cells in that tableview (CustomCellWithButton, AddSlidesCells and CustomCell). the blurry can be found in all of them but it is clearly seen in CustomCell. It is making me crazzzzy :S Please Help

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
 static NSString *CellIdentifier;
 if((indexPath.section == 4 && (indexPath.row == 1)))
 {
    CellIdentifier = @"CustomCellWithButton";
    CustomCellWithButton *cell = (CustomCellWithButton*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"CustomCellWithButton" owner:nil options:nil];

        for(id currentObject in topLevelObjects){
            if([currentObject isKindOfClass:[UITableViewCell class]]){
                cell = (CustomCellWithButton *)currentObject;
                break;
            }
        }
    }
    [cell.button addTarget:self action:@selector(nextButtonPressed:) forControlEvents:UIControlEventTouchUpInside];
    [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    [cell setBackgroundColor:[UIColor darkGrayColor]];

    return cell;
}
else
{
    if((indexPath.section == 3 && (indexPath.row == 0))){
        CellIdentifier = @"AddSlidesCells";

        AddSlidesCells *cell = (AddSlidesCells*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
            NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"AddSlidesCells" owner:nil options:nil];

            for(id currentObject in topLevelObjects){
                if([currentObject isKindOfClass:[UITableViewCell class]]){
                    cell = (AddSlidesCells *)currentObject;
                    break;
                }
            }
        }

        [cell.switchButton setOn:[self getswitchButtonsStatesByIndexPath:indexPath] withIndexpath:indexPath];
        [cell.switchButton addTarget:self action:@selector(switchChanged:forEvent:) 
                    forControlEvents:(UIControlEventValueChanged | UIControlEventTouchDragInside)];
        [cell.button addTarget:self action:@selector(addSlicePressed:) forControlEvents:UIControlEventTouchDown];

        NSLog(@" ---- here add to dismiss keyboared");

        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
        [cell setBackgroundColor:[UIColor darkGrayColor]];

        if (alignedLeft) {
            [cell hardAllignToLeft];

        }else
            [cell hardAllignToRight];

        return cell;
    }

    else
    {
        CellIdentifier = @"CustomCell";
        BOOL dequed;
        CustomCell *cell = (CustomCell*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        NSString* placeHolder = [self getplaceHoldersByIndexPath:indexPath];

        if (cell == nil) {
            dequed = NO;
            NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:nil options:nil];

            for(id currentObject in topLevelObjects){
                if([currentObject isKindOfClass:[UITableViewCell class]]){
                    cell = (CustomCell *)currentObject;
                    [cell setFrame:CGRectMake(0, 0, 320, 50)];

                    break;
                }
            }
        }else
            dequed = YES;

        cell.alignedLeft = alignedLeft;

        [cell.textField setPlaceholder:placeHolder];
        [cell.textField setText:[self getTextfieldByIndexPath:indexPath] andIndexPath:indexPath];
        [cell.switchButton setOn:[self getswitchButtonsStatesByIndexPath:indexPath] withIndexpath:indexPath];
        [cell.switchButton addTarget:self action:@selector(switchChanged:forEvent:)
                    forControlEvents:(UIControlEventValueChanged | UIControlEventTouchDragInside)];
        [cell.textField  addTarget:self action:@selector(UIControlEventEditingChanged:) 
                  forControlEvents:UIControlEventEditingChanged];
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
        cell.textField.delegate = self;

        if( [placeHolder isEqualToString:[OperationsOnCoreData PlistCommonStrings:@"Telephone"]] ||
           [placeHolder isEqualToString:[OperationsOnCoreData PlistCommonStrings:@"Email"]]){

            cell.plusSignButton.hidden = NO;
            cell.minusSignButton.hidden = YES;
            [cell.plusSignButton addTarget:self action:@selector(plusSignButtonPressed:)
                          forControlEvents:UIControlEventTouchUpInside];
        }
        else
            if(( !([placeHolder rangeOfString:[NSString stringWithFormat:@"%@ ",[OperationsOnCoreData PlistCommonStrings:@"Telephone"]]].location == NSNotFound)||
                !([placeHolder rangeOfString:[NSString stringWithFormat:@"%@ ",[OperationsOnCoreData PlistCommonStrings:@"Email"]]].location == NSNotFound))){

                cell.minusSignButton.hidden = NO;
                cell.plusSignButton.hidden = YES;
                [cell.minusSignButton addTarget:self action:@selector(minusSignButtonPressed:) 
                               forControlEvents:UIControlEventTouchUpInside];
            }
            else{
                cell.minusSignButton.hidden = YES;
                cell.plusSignButton.hidden = YES;                            
            }


        if(cell.switchButton.on){
            [cell.textField setEnabled:YES];
            cell.textField.alpha = 1; 
        }else{
            [cell.textField setEnabled:NO];
            cell.textField.alpha = 0.5;
            cell.plusSignButton.enabled = NO;
            cell.minusSignButton.enabled = NO;
        }

        [cell setBackgroundColor:[UIColor darkGrayColor]];  

        if (alignedLeft) {
                [cell hardAllignToLeft];

        }else
                [cell hardAllignToRight];
        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-25T18:27:39+00:00Added an answer on May 25, 2026 at 6:27 pm

    The blurry cells look blurry because the elements are one pixel less high than the non-blurry ones. So the blurry look is caused by the resizing of the switch button and the plus icon.

    To fix it, you’ll need to investigate the layout of your cell, in particular how these elements sized. They probably should always take their natural size. The pasted code doesn’t contain the relevant parts.

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

Sidebar

Related Questions

Ok, so I was having a very interesting issue with CakePHP 1.3, in that
I'm having an interesting issue with Leptonica that I'm wondering if other SO members
Having an interesting issue. I'm reading from an excel file on a server via
I'm having an interesting JNA issue here. Under JRE 1.6 and 1.7 x64, I
Today I faced an interesting issue. I've been having an inheritance hierarchy with Hibernate
Folks, I'm having an interesting issue with Silverlight DataGrid data binding. It may be
I have an interesting issue where a class inherits from a class that implements
I'm having an interesting issue when deploying an app to Tomcat. I'm using the
So I am having an interesting issue with System.Data.SQLite and using multiple transactions. Basically
We have been having an interesting issue with the Eclipse update when some of

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.