Add a table view to the detailed view of a navigation controller
Hi everyone
I have a navigation controller, with many rows, and a detail view for each one when clicked.
It's done in my rootviewcontroller.m with:
[self.navigationController pushViewController:rvController animated:YES];
Now, on this detailed view, I would like to do the same: put a table view, and when one row is clicked, move to a view.
I've put everything in the detailed view and IB, I don't get any error but to warnings.
It's this one that cause me issue in my detailedViewController.m:
[self.navigationController.view reloadData];
I have copy pasted this code from my rootview, because it worked there.
How do I update the table view from the detail view? Cause if I delete the lign with the warning, it loads but no data in the rows. If I let the lign, it crashes.
I have a navigation controller, with many rows, and a detail view for each one when clicked.
It's done in my rootviewcontroller.m with:
[self.navigationController pushViewController:rvController animated:YES];
Now, on this detailed view, I would like to do the same: put a table view, and when one row is clicked, move to a view.
I've put everything in the detailed view and IB, I don't get any error but to warnings.
It's this one that cause me issue in my detailedViewController.m:
[self.navigationController.view reloadData];
I have copy pasted this code from my rootview, because it worked there.
How do I update the table view from the detail view? Cause if I delete the lign with the warning, it loads but no data in the rows. If I let the lign, it crashes.