How do I update UIView in UITabBarController?

I am in an updated look at the TabBar. UIView is only read the first time I pressed the TabButton and next time not "viewDidLoad". I want to update the UITableView every time I click a button.

Thanks!

+2


a source to share


1 answer


Ok Found a solution (right after I posted it here)

add:



- (void)viewWillAppear:(BOOL)animated
{
    NSLog(@"View appears");
}

      

to your ViewController and you will see that this method will be called by pressing TabButton;)

+2


a source







All Articles