Tab Bar Controler Refresh One View

Discussion in 'iOS Programming' started by mickeyPt, May 29, 2010.

  1. mickeyPt macrumors newbie

    Joined:
    May 28, 2010
    #1
    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?
     
  2. KoolStar macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    You can call reload on the table in the viewWillAppear;
    Code:
    -(void)viewWillAppear:(BOOL)animated { 
    	[super viewWillAppear:animated];
    	[[B]yourtableviewname[/B] reloadData];
    }
     

Share This Page