Kazu
Kazu

Reputation: 29

How can refresh UIView in UITabBarController?

I'm stack on refreshing view in TabBar. The UIView is read only first time I pressed the TabButton and does not "viewDidLoad" next time. I want to refresh UITableView every time I pressed the button.

Thank you!

Upvotes: 2

Views: 2161

Answers (1)

Hannes Satz
Hannes Satz

Reputation: 21

Ok Found a solution (just right after i posted this here)

add:

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

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

Upvotes: 2

Related Questions