I have 2 classes, classA and classB
In classA I have a tableview that works and refreshes on demand. all the delegates and datadource are fine and there’s also a property @property (nonatomic, retain) UITableView *myTableView;
I don’t want to put reloadData in viewDidAppear or viewWillAppear of classA.
I want to fire [myTable reloadData] from classB.
Thanks
Use delegates to reload your tableview.
In the class where the tableview is, write this in viewDidLoad:
Then in the same class implement its function like so:
Finally, in the class from where you want to reload your tableview
paste the following line (It’s important that this line goes in the method from where you want to reload your tableview):
Tell me if you have any problems.