I have an application in which i am using a sidemenu controller like a facebook app.its basically a UITableViewController.when i am using [self.tableView reloaddata] in the view will appear methode for the first time its working fine.Because of some requirement i need to reload this table view from another view controller.so i did this:
SideMenuViewController *second = [[SideMenuViewController alloc]init];
[second viewWillappear:YES]
where i am reloading the data.But when i am doing this the reloaddata is not calling the cellforindexmethode of the tableviewcontroller But it is calling the numberOfRowsInSection methode.Can anybody help me in finding where i am going wrong.
You could use a notification to to this.
In the SideMenuViewController viewDidLoad method you add a this:
The reloadTable method looks like this:
When you want to refresh the table you just post this notification from anywhere you want in your app.