JacobSiegel JacobSiegel - 1 year ago 122
Swift Question

How to reloadData in class which implements UITableViewDataSource and UITableViewDelegate protocols?(Swift)

So I understand that if I was using a TableViewController class I could use:


Although, this doesn't work with a class that conforms to certain tableView protocols.

How would I do this? Thanks in advance.

Answer Source

Exactly the same way (although view controllers that are not UITableViewControllers will not have a tableView property unless you define it and connect it yourself.