I've a table view with a custom image background of each cell. In normal mode the background is perfect and fill all the cell. When tableView enter in editing mode the "-" button appear on left and all the object are indented and in the left I've problem with background: there a white area. Can anyone help me? The background image is big enough to fill all the cell but its moved in editing mode. Can I solve it? thanks a lot!
Update:
I used this code in my UITableViewCell subclass:
- (void) layoutSubviews
{
UIImage *backgroundImage = [UIImage imageNamed:@"sfondoCella2.png"];
UIImageView *bgView = [[UIImageView alloc] initWithFrame:self.bounds];
bgView.image = backgroundImage;
self.backgroundView = bgView;
[bgView release];
}
To set background and appranetly works well in normal mode but when you go in editing mode all goes wrong: the circulare red delete button not appear and the indentetion of the cell (perfect with the background setted in IB) are not correct.