Reputation: 31
The issue appeared with ios11. I have a usual screen with tableview, tapping on cell user goes to detail screen. I do not have gesture recognizers at this screen. The steps next: 1) go to this screen with tableview 2) tap to cell, go to detail screen 3) then tap back 4) attempt to tap again on any cell, no actions So didselectrowatindexpath calls only first time! Further investigation gave some result: didselectrowatindexpath calls only when you tap at cell with two fingers simultaneously!!! I can't explain this. The same build works fine on ios10.. Any suggestions or somebody had the same issue ?
public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let timeReservations = currentReservations?.reservationsByTypes[indexPath.section]
let reservation = timeReservations?.reservations[indexPath.row]
let reservationMainVC = self.storyboard?.instantiateViewController(withIdentifier:
Globals.ReservationMainVCConstants.identifier) as! ReservationMainViewController
reservationMainVC.reservationId = reservation?.id
self.navigationController?.pushViewController(reservationMainVC, animated: true)
}
Upvotes: 1
Views: 721
Reputation: 31
The reason of this behavior was found. I use pod SwipeCellKit for creation swipe actions. It blocks any actions on tableview. Link for this issue https://github.com/SwipeCellKit/SwipeCellKit/issues/92
to resolve this replace in your pod file to
pod 'SwipeCellKit', :git => 'https://github.com/SwipeCellKit/SwipeCellKit.git', :branch => 'master'
Upvotes: 1