I have a table view that uses a location manager to grab the users location. In my didUpdateToLocation method, i create an NSURLConnection to go off to my webservice which returns JSON.
The delegate of the Connection is set to an instance of my JSONController class and in its connectionDidFinishLoading method, i need to call [tableView reloadData] to get the table view to refresh.
How do i get a reference to my table view? I tried:
TableViewController *myTVC = [[TableViewController alloc] init];
[myTVC.tableView reloadData];
but it did not work.
What do i need to do?
Thanks.