Quote:
Originally Posted by mnemonic_fx
What's the dreaded message ?
|
I'm getting an objc_msgSend at runtime in one of my methods when I pop my last view from the navController. So I think assigning the delegate is forcing the reload 'cause I think all of my methods are firing again.
So I'm going to investigate this and let you know.
It would seem that the following code is getting executed for every view controller which I guess it should:
Code:
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
if ([viewController isKindOfClass:[UITableViewController class]])
{
UITableViewController *controller = (UITableViewController *)viewController;
[controller.tableView reloadData];
}
}
The problem is that I don't want every table in every view to be reloaded - just my SubscriptionDetailController. Is there any way to select that view to reload? Like, is there a way to determine which class is currently executing?
Also, one of my local variables is going out of scope. I'm not sure why, but I need to only reload just a particular table view controller. So how can I find out which view controller/class is executing? That's what I need to key off of for the reloadData.
Thanks!