2017-07-20 30 views
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

['[swift3] NSIndexPath forRow'](https://stackoverflow.com/search?q=%5Bswift3%5D+NSIndexPath+forRow)的第一个命中回答你的问题... –

回答

0

斯威夫特3:

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

,并删除as IndexPath桥演员。

+0

现在它的工作..谢谢你... – banepastuv

相关问题