Do it below:
Suppose you have 2 view controllers.
ViewController1
ViewController2
And you have a UITableView tblTable object in ViewController2 .
in ViewController2.h file:
@property(nonatomic, retain) UITableView *tblTable;
in ViewController2.m file:
@synthesize tblTable;
Now in the file ViewController1.m :
ViewController1 *objV1 = [ViewController1 alloc]initWithNibName....]; [objV1.tblTable reloadData];
I hope this will be helpful to you.
Let me know in case of any difficulties.
Greetings.
source share