Custom cell and Delete/Move indicators

Posted by Kamchatka on Stack Overflow See other posts from Stack Overflow or by Kamchatka
Published on 2010-05-29T19:36:29Z Indexed on 2010/05/29 19:42 UTC
Read the original article Hit count: 238

Hello,

I have a custom UITableViewCell. However, when I got in edit mode, I don't have any Delete and Move indicators appearing. The custom cell draws itself in the contentView.

In layoutSubviews, I make sure there is space on the left and one the right of the contentView so that the controls can appear (if this was the problem).

- (void)layoutSubviews
{
self.contentView.frame = CGRectMake(50, 0, self.frame.size.width - 100, sub.thumbnail.size.height + 20);
}

In the UITableViewController, I return YES in: - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath {

How could I solve this lack of interactivity. Is there something specific for custom cells?

Thanks!

© Stack Overflow or respective owner

Related posts about iphone-sdk

Related posts about cocoa-touch