首页 文章

参数标签与任何可用的重载都不匹配[重复]

提问于
浏览
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)}

1 回答

  • 0

    斯威夫特3:

    let indexPath = IndexPath(row: players.count-1, section: 0)
    

    并删除 as IndexPath 桥牌 .

相关问题