In my app, I have a view controller on a storyboard linked to a .h file. I would like though to insert a UITableView, andy link it to a separate view controller .h. But the problem is that in the class for my view controller, i can only select one .h, not two, so I can’t link the table view. If I charge it on a second view controller it works, but in this way it doesn’t. what can I do??
Share
If I understand what do you want to do, you want to give access to table of your tableViewController to another viewController.
UITableViewController has
tableViewproperty that you can pass to your viewController or to any other class, that needs this tableView. You can pass it, for example, using property in class that needs this tableView. Like this:after this you will be able to write this code