Quote:
Originally Posted by mavrik5150
If it's just another TableViewController that you have then you should just be able to do: [OtherView.tableView reloadData]. As long as you are importing it and creating the OtherView reference this should work.
|
GACK!!!!!
Bad, bad advice.
One view controller should never muck around with the views inside another view controller. This creates tight coupling between the view controllers, and completely violates the encapsulation that is important to good object-oriented design.
Instead, you should add a method to the view controller that owns the table view, called something like dataChanged. Then the view controller can issue a reload command to it's table view if it sees fit to do so.