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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:07:00+00:00 2026-05-27T17:07:00+00:00

I have a custom table cell, right now, it’s all Nib based. When I

  • 0

I have a custom table cell, right now, it’s all Nib based. When I go into editing mode, the editing accessory view makes room for the reorder control, by animating to the left.

However, a custom view I have in my table cell, stays put. It seems that one’s own custom UIView’s inside the cell, are left as is. I’m so used to seeing table cell content shift, I almost thought this was automagically handled (maybe it is, and I’m not hooking into that facility)?

To compensate, I’m just applying a transform on my custom subview when entering/exiting editing mode on the table cell. It all works, but I wonder if I’m doing this the best way I can.

Eventually, I’ll likely move to pure drawRect: cells, but that aside, in a purely Nib based table cell construction, what’s the best practice for doing these adjustments? A conditional set of placements in layoutSubviews?

Here’s my override of the editing method on my custom table cell class, and an image of the view (“Stats Bank View”) I’m looking to slide in.

- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
    [super setEditing:editing animated:animated];

    CGAffineTransform transformToApply = (self.isEditing ? 
        CGAffineTransformMakeTranslation(-38, 0) : CGAffineTransformIdentity);

    RPExerciseSetTableCellBase *capturedSelf = self;
    [UIView animateWithDuration:(animated ? 0.25f : 0.0f) 
                          delay:0.0f 
                        options:UIViewAnimationOptionCurveEaseInOut 
                     animations:^{
                         capturedSelf.middleStatsBackgroundImageView.transform = 
                            transformToApply;
                     } 
                     completion:^(BOOL finished) {
                         // Nothing to do as yet.
                     }];
}

And here’s how the layout in the Nib looks:

Custom Table Cell Nib with custom subview selected I wish to reposition when editing reorder control appears

In Summary, my question: For pure Nib based cells, what’s the best practice technique (and why) for re-arranging custom interior subviews of the cell in response to the reordering control appearing?

  • 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-27T17:07:01+00:00Added an answer on May 27, 2026 at 5:07 pm

    Make your changes in -layoutSubviews based on whether the table is editing or not. Any changes made here are automatically animated for you.

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

Sidebar

Related Questions

I have a custom view in a custom table cell. Every time a specific
I have custom table view cell with images (loaded from app document directory), labels,
I have a custom Table View Cell that displays the details of a Conference
I have implemented a custom table view cell. I can get the cell to
I've got a custom table view cell defined within a nib, I'm finding that
I have a table view controller with custom cells. In those cells i added
I have a view-based NSTableView populated custom NSTabelCellView subclass, which are the lowest objects
I have few custom controls (image views) added programmatically to table cell. I want
I have several parts in my app where I use custom table view cells.
I have a custom cell and i displayed that custom cell in a table

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.