Swift: Cannot invoke 'reloadData' with no arguments

后端 未结 1 1256
庸人自扰
庸人自扰 2020-12-21 22:05

I\'m currently building my first app in Swift. I use Parse as database and want to show all the titles in table Recipes. I created an array for all the titles and add every

1条回答
  •  有刺的猬
    2020-12-21 22:48

    The error message is misleading, but the problem is that your FirstViewController does not have a tableView property.

    Most probably you want FirstViewController to inherit from UITableViewController instead of UIViewController. That would solve the problem because UITableViewController has a tableView property.

    0 讨论(0)
提交回复
热议问题