Post

Replies

Boosts

Views

Activity

Reply to Crash: IndexPath.section.getter + 168
I have this same problem. Accessing the section crashes.     override func tableView(_ tableView: UITableView, accessoryButtonTappedForRowWith indexPath: IndexPath) {         if indexPath.count != 2 {             print( indexPath.debugDescription )             print( indexPath.description )             print("hi")         } // Outputs // [] // [] // Then crashes         let row = indexPath.section == 0 ? indexPath.row : indexPath.row + 2
Mar ’22