UITableViewCell strange background resizing in editing mode

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:

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


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.

Dude, there's another way !

just add this inside your cell:

[self.contentView setAutoresizesSubviews:NO];

Best regards

Need Your Help

Registry Entries for all users in Python

python windows permissions registry winreg

I wrote an application that stores several things in the registry. When I first started, I added them to HKEY_LOCAL_MACHINE, but kept getting permission errors writing to the. So, it was suggested ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.