I have a UIViewController
with a container view which holds a UITableView
.
Within the UITableView I have a NSFetchController with NSPredicate
that uses variables from the intial UIViewcontroller
(I hope your still with me). For one instance that the user changes the container view does not update.
How can I force a reload/update on the container view when this occurs? I looked around but did not see much on this topic.
To be specific I have a UIDatePicker that changes the date on a button. It is this that needs to be updated.
From the initial UIView controller, you can get a reference to the table view controller with self.childViewControllers[0]. So, you need to do it like this:
UITableViewController *tbc = (UITableViewController *)self.childViewControllers[0];
[tbc.tableView reloadData];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With