Reputation: 2184
As a solution from StackOverflow to avoid this error:
Problem: I have some values to display from the previous view, but I can't access these textFields on the right. (different class now).
Upvotes: 0
Views: 102
Reputation: 126
Try to get the child view controllers of parent view controller (View controller that have container view in it) from there. From the child view controllers array cast your view controller (Which have your tableview in it) and make an instance.
Using this instance you can change the properties of tableview.
if let vcChild : ChildViewController = self.childViewControllers[0] as! ChildViewController {
vcInfo.tableView.reloadData()
}
Upvotes: 2