0
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)}
请添加更多的细节。 –
['[swift3] NSIndexPath forRow'](https://stackoverflow.com/search?q=%5Bswift3%5D+NSIndexPath+forRow)的第一个命中回答你的问题... –