Я добавляю ячейку в конец секции в режиме редактирования и даю ей UITableViewCellEditingStyleInsert.Как мне установить, какую функцию вызывает эта кнопка?
UITableViewCellEditingStyleInsert
Используйте этот метод UITableView:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if(indexPath.row == editStyleRowInd){ //any actions here } }
Где editStyleRowInd индекс последней строки в таблице