I have a Swift class that extends from a UITableViewController . It has this function.
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {...}
Needed, I need to call this function programmatically in one place and when I write
self.tableView(tableView, cellForRowAt: 1)
- I get, I can not call the value of the non-function type "UITableView!"
How can I call this function programmatically?
source share