开发者

table reloadData not called

开发者 https://www.devze.com 2023-01-15 09:13 出处:网络
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开发者_如何学Python viewWil

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开发者_如何学Python 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

0

精彩评论

暂无评论...
验证码 换一张
取 消