I have a custom cell that has an UIImageView in it that I do not want to animate when entering and exiting edit mode. I have gotten it to animate the other direction with the autoresizingMask property, but I am unable to prevent its movement.
I create the custom cell with a class, then use it in the cellForRowInIndexPath method. The UIImageView is part of that class, although the layout is done in cellForRowInIndexPath. I am essentially creating a progress bar that spans across the bottom. So it will span from the left to the right. The animation that I am trying to prevent is when entering edit mode, the image view slides to the right to make space for the delete circle graphic.
The image view is probably added as a subview of your cell’s content view. The content view is resized when the cell enters editing mode, meaning that the image view has to move if it is close to the edge of the content view.
To keep it in the same place it can be added as a subview of the cell directly instead of the cell’s content view.