简体   繁体   中英

table reloadData not called

I have a viewcontroller which contains a tableview. I call another view via pushViewController. When I get back to my original viewController I hope to redraw the table, but viewWillAppear is never called.

Any other ideas?

I've used this in my own projects with success.

-(void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    [[self tableView] reloadData];
}

Double check the spelling of the method.

I had two classes competing for messages, UITabbarcontroller and UINavigationController. I had a UITabBar from a previous experiment. It was created but not used. The messages where getting to UITabBarController, and UINavigationController was never told.

Hope this solution will help someome someday

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM