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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:29:00+00:00 2026-06-17T12:29:00+00:00

I have a custom cell which looks like this Cell -ContainingView (called cellframe) –Label

  • 0

I have a custom cell which looks like this

Cell

-ContainingView (called cellframe)

–Label

–Label

The reason for the containing view is so that I can set a shadow around the cell.

below is my code

#import "QuickNoteMasterViewCell.h"
#import <QuartzCore/QuartzCore.h>

@interface QuickNoteMasterViewCell ()

@property (nonatomic, strong) CAShapeLayer *shapeLayer;

@end



@implementation QuickNoteMasterViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state

}

-(void)setEditing:(BOOL)editing{

}

// this adds shadow and border to the cell

- (void)configureBackgroundView
{
    UIView *cellFrame = self.cellFrame;
    //cellFrame.layer.borderColor = [UIColor whiteColor].CGColor;
    //cellFrame.layer.borderWidth = 10.;

    CGSize size = cellFrame.bounds.size;
    CGFloat curlFactor = 15.0f;
    CGFloat shadowDepth = 5.0f;
    cellFrame.layer.shadowColor = [UIColor blackColor].CGColor;
    cellFrame.layer.shadowOpacity = 1.f;
    cellFrame.layer.shadowOffset = CGSizeMake(.0f, 3.0f);
    cellFrame.layer.shadowRadius = 3.0f;
    cellFrame.layer.masksToBounds = NO;

    UIBezierPath *path = [UIBezierPath bezierPath];
    [path moveToPoint:CGPointMake(0.0f, 0.0f)];
    [path addLineToPoint:CGPointMake(size.width, 0.0f)];
    [path addLineToPoint:CGPointMake(size.width, size.height + shadowDepth)];
    [path addCurveToPoint:CGPointMake(0.0f, size.height + shadowDepth)
            controlPoint1:CGPointMake(size.width - curlFactor, size.height + shadowDepth - curlFactor)
            controlPoint2:CGPointMake(curlFactor, size.height + shadowDepth - curlFactor)];
    cellFrame.layer.shadowPath = path.CGPath;
}


- (void)layoutSubviews
{
    [super layoutSubviews];

    [self configureBackgroundView];

}



@end

before drag

The problem is that when I reorder the cells, the ContainingView (called cellframe)
gets removed.

during drag

Any ideas how to fix?

  • 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-06-17T12:29:02+00:00Added an answer on June 17, 2026 at 12:29 pm

    When a UITableViewCell is reordered, the TableView will hide everything that’s not a UILabel or UIImageView.

    Not quite sure why it does this, but I don’t know of any way around it.
    The only way I know will work is to create your shadowed view as an image and switching your UIView for a UIImageView.

    Sorry!

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

Sidebar

Related Questions

I have a UITableView of custom UITableViewCells which looks like this: [ CELL 0
I have a table cell with a custom backgroundView which looks great while in
I have a custom UITableView cell which has a button and a label. I
I have a custom cell for my table view which I have designed using
I have a List View in which I have defined a custom cell as
I have a created custom table view cell class named CustomCell which inherits from
I have rendered a custom cell which combines an image and text. It looks
I have a custom table cell which has a custom ui view in it.
In my application i have used list view and custom cell which contain product
I have created custom cell in which there are n number of image views.

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.