代码之家  ›  专栏  ›  技术社区  ›  griotspeak

如何使UITableViewCellEditingStyleInsert按钮调用InsertNewObject

  •  0
  • griotspeak  · 技术社区  · 15 年前

    在编辑模式下,在节的末尾添加一个单元格,然后将其 UITableViewCellEditingStyleInsert . 如何设置按钮调用的函数?

    1 回复  |  直到 15 年前
        1
  •  0
  •   HotJard    14 年前

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
        if(indexPath.row == editStyleRowInd){
            //any actions here
        }
    }