Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

mickeyPt

macrumors newbie
Original poster
May 28, 2010
2
0
Hello

Need some info/help.
I have a small application, that has a tab bar controller and one of the views that it's loaded, has a Table View that get's populated with and array (strings) in the ViewLoad method.. then I have another view where the user can add items to that array.
So my problem is when i add new items if i allready selected the view when i came back the view i can't see the new ones.

What i need it's to know if there's some way to refresh the data in the view?
 
You can call reload on the table in the viewWillAppear;
Code:
-(void)viewWillAppear:(BOOL)animated { 
	[super viewWillAppear:animated];
	[[B]yourtableviewname[/B] reloadData];
}
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.