我使用下面的代码显示使表变得可编辑,但似乎表视图左边没有显示删除按钮。为什么?
- (void)viewListEditale:(NSNotification *)notification{
NSString *edited = [notification.object objectForKey:@"edit"];
if ([edited isEqualToString:@"N"]) {
[_tableView setEditing:NO animated:YES];
}else{
[_tableView setEditing:YES animated:YES];
}
}


发布于 2016-02-26 09:19:47
我在you.last时间遇到了同样的问题,我忘记了调用:
[super layoutSubviews]当我打电话的时候
-(void)layoutSubviews在我的自定义Cell.Please中,检查代码。
发布于 2016-02-26 09:23:12
这可能会有帮助。
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
return YES;
}https://stackoverflow.com/questions/35647660
复制相似问题