if let player = playerDetailsViewController.player {
players.append(player)
let indexPath = NSIndexPath(forRow: players.count-1, inSection: 0) <<error line
tableView.insertRows(at:[indexPath as IndexPath], with: .automatic)}
答案 0 :(得分:0)
斯威夫特3:
let indexPath = IndexPath(row: players.count-1, section: 0)
并删除as IndexPath
桥牌。