i've a class SelezionaProfilo, in this class i've a list of players:
@interface SelezionaProfilo : UIViewController < UITableViewDelegate, UITableViewDataSource > {
UITableView *myTableView;
//my staff
}
@property (nonatomic, retain) IBOutlet UITableView *myTableView;
all works fine.
i've built a subclass SelectPlayerViewController embeded in navigationcontroller, because i want to have a different reaction to push a row:
@interface SelectPlayerViewController : SelezionaProfilo {
all works fine, i've the players list. And i have the different action.
in the SelectPlayerViewController.m i've added a button on navigation bar, add player button that goes to another class in push navigation. Now the player was created, but when the view come back to SelectPlayerViewController, i can't see the last player.
in SelezionaProfilo.m:
- (void)viewWillAppear:(BOOL)animated {
[self.myTableView reloadData];
[super viewWillAppear:animated];
}
and in SelectPlayerViewController.m
- (void)viewDidAppear:(BOOL)animated {
[super.myTableView reloadData];
}
i'm sure that enter in this method, but the table doesn't refresh. I've a tabbar, and i've SelezionaProfilo in another tab, if i select this, i can see the last player, so the SelezionaProfilo class works fine.
can anyone suggets me? thaks