系统:iOS 8.2
自定义左滑删除等菜单时,除了实现下面这个代理:
- (NSArray<UITableViewRowAction*>*)tableView:(UITableView *)tableView editActionsForRowAtIndexPath:(NSIndexPath *)indexPath
{
//code
}
还需要,
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{
//没有这个方法陪着,左滑没戏~
}