1

here is my problem: I have an editButton and editActions for each cell

So I wanted checkboxes instead of red minuses . I've found this block of code:

override func tableView(_ tableView: UITableView, editingStyleForRowAt indexPath: IndexPath) -> UITableViewCellEditingStyle {
      
      // Возвращаем стиль с checkbox'ами, который мне нужен
      return UITableViewCellEditingStyle.init(rawValue: 3)!
      
   }

it helped me. BUT!!1 Because of this code, rowActions stoped to appear. When I try to swipe to the left, cells just perform their segues (like here). It is not normal.

Gleb Kalachev
  • 123
  • 1
  • 7
  • There is no UITableViewCellEditingStyle with a rawValue = 3 maximum is 2. BTW It is much easier to just `return .insert` – Leo Dabus Mar 19 '17 at 23:56
  • Okey, then why, if I return .insert, there are green pluses on the left of the cells. If I return .init(rowValue: 3), I get, checkboxes - what I want, and if I return init(rowvalue:4) or any other rowValue, I get nothing on the left of the cells?? – Gleb Kalachev Mar 20 '17 at 11:39

0 Answers0