2009-12-18 92 views

回答

7

在你的UITableViewCell类的.m文件中使用layoutSubviews。这就是所谓的每次细胞大小时,将出现删除按钮/消失,更多:

- (void) layoutSubviews { 

    [super layoutSubviews]; 


    frame = self.contentView.bounds; ///this is the availalbe space for the cell 
    ///it's automatically adjusted when the delte button appears 
    ///so use it to resize all of your interface elements 
} 

您还可以使用if (self.editing) { layoutSubviews内进行更多的控制。

相关问题