怎么在UITableView的Section Footer添加按钮


首先,在点击+或者-按钮的时候设置tableview的editing为yes啊,记住点击的按钮是那个啊,可以设个bool或者其他的来记住都行,然后重写
代码如下:
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath根据你记住的按钮返祥贺回相应的类轮宴键型啊。UITableViewCellEditingStyleDelete或者UITableViewCellEditingStyleInsert。腊巧
- (UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
//凳尺 自定义的Footer
}

在自定义footer中猜粗尘可穗禅以自己添加uibutton return button就可以