hi,
Completed chapter 4 of More IOS 6 Dev and I noticed that the detailText of the UITableView of my HeroListController doesn't contain the new information entered in HeroDetailController. It seems to depend on what the chosen sortDescriptor is, so if detailText is the top sortDescriptor then that is updated fine and title isn't and vice versa. This is pretty much driving me around the bend, I can't see a good reason for one to update and not the other.
The data is being saved fine, if I stop and restart the application the list of super heros is displayed fine. If I override viewWillAppear in HeroListController and add a reloadData the table looks fine, only problem is the code shouldn't require this to work. I have been working from the Alpha version of the book and just noticed that the final release is available so I'll recheck the code tomorrow.
Interested if anyone else had this issue.
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.heroTableView reloadData];
}
Thanks
Comments