0
votes

Here is my customized UITableViewCell with background image etc. When I call [tableView setEditingMode:YES]; - editing controlls scale my background image and it looks very bad. See screenshots:

Vertical

Full description

Cell background scales when edit controlls appear. How to fix this? I've tried to manipulate with UIAutoresizingMask, but no results.

2

2 Answers

0
votes

You may have better results if you add your background image directly on the UITableViewCell's view instead of its contentView. The view of that UITableViewCell is not in any way resized when switching to editing mode.

0
votes

Dude, there's another way !

just add this inside your cell:

[self.contentView setAutoresizesSubviews:NO];

Best regards