Hello,
This is a tab bar application created using XCode tab bar template.
After that I have added a nib called tableView.xib and pointed it to the first tab of the tabbar in the MainWindow.xib.
And in the tableView.xib I have added a tableView control.
These are the files I have.
tabbarAppDelegate.h
tabbarAppDelegate.n
FirstViewController.h
FirstViewController.m
MainWindow.xib
SecondView.xib
tableView.xib
Data source and delegate are pointing to the FirstViewController, and from its viewDidLoad method I am able to populate the TableView correctly.
(This controller has the mandatory TableView methods implemented)
What I need is to be able to do reloadData from the FirstViewController.
[tableView reloadData]; //does not work
[self.tableView reloadData]; //does not work
#import "tabbarAppDelegate.h"
tabbarAppDelegate*appDelegate = (tabbarAppDelegate*)[[UIApplication sharedApplication] delegate];
[appDelegate reloadData]; //too does not work
I have also tried to add the method viewWillAppear but that too does not detect the reloadData method.
I am new to this, please help me on how to access the tableView.
Thanks,
Sree
This is a tab bar application created using XCode tab bar template.
After that I have added a nib called tableView.xib and pointed it to the first tab of the tabbar in the MainWindow.xib.
And in the tableView.xib I have added a tableView control.
These are the files I have.
tabbarAppDelegate.h
tabbarAppDelegate.n
FirstViewController.h
FirstViewController.m
MainWindow.xib
SecondView.xib
tableView.xib
Data source and delegate are pointing to the FirstViewController, and from its viewDidLoad method I am able to populate the TableView correctly.
(This controller has the mandatory TableView methods implemented)
What I need is to be able to do reloadData from the FirstViewController.
[tableView reloadData]; //does not work
[self.tableView reloadData]; //does not work
#import "tabbarAppDelegate.h"
tabbarAppDelegate*appDelegate = (tabbarAppDelegate*)[[UIApplication sharedApplication] delegate];
[appDelegate reloadData]; //too does not work
I have also tried to add the method viewWillAppear but that too does not detect the reloadData method.
I am new to this, please help me on how to access the tableView.
Thanks,
Sree