Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ord6

macrumors newbie
Original poster
Jun 19, 2012
24
0
I disabled the cell indentation while in edit mode.
In the custom cell's layoutSubviews method I added:
Code:
float indentPoints = self.indentationLevel * self.indentationWidth;
    
    self.contentView.frame = CGRectMake(indentPoints,
                                        self.contentView.frame.origin.y,
                                        self.contentView.frame.size.width - indentPoints,
                                        self.contentView.frame.size.height
                                        );

The problem is when I click the edit control mark (the minus sign) once to show the delete confirmation button, and then I press the edit control again, the delete confirmation is dismissed but the cell is jumping for some reason.

Here is a video showing the issue:
.

Any idea how I can remove this jumping?
 
Last edited by a moderator:
Try wrapping your content frame change I'm a uiview animation block instead of just changing the frame.
 
Try wrapping your content frame change I'm a uiview animation block instead of just changing the frame.

I tried this:

Code:
[UIView animateWithDuration: 0
                          delay: 0
                        options: (UIViewAnimationOptionTransitionNone)
                     animations:^{
                         float indentPoints = 
                         self.indentationLevel * self.indentationWidth;
                         
                         self.contentView.frame = CGRectMake(indentPoints,
                                                             self.contentView.frame.origin.y,
                                                             self.contentView.frame.size.width - indentPoints,
                                                             self.contentView.frame.size.height);
                    }
                     completion:^(BOOL finished) { }
     ];

It just adds another jump.
Is that what you meant?
 
That is what I was meaning originally. Let me put a sample project together to see if i get the same behavior. I'll get back to you on it.

Also try the animation option begin from current state and see what that does.
 
That is what I was meaning originally. Let me put a sample project together to see if i get the same behavior. I'll get back to you on it.

Thanks!

Also try the animation option begin from current state and see what that does.

It adds another jump as well.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.