Quote:
Originally Posted by mnemonic_fx
I'm not sure how did you implement it.
If the self.tableView is nil then it's not created / allocated yet.
But, in that case, the delegates shouldn't work, when you scroll it.
What do you mean by "thread" ?
|
Here is what my interface declaration looks:
Code:
@interface SubscriptionDetailController : SecondLevelViewController <UITableViewDelegate, UITableViewDataSource, UINavigationControllerDelegate>
I added UINavigationControllerDelegate protocol and have this method defined in my .m file:
Code:
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
if ([viewController isKindOfClass:[UITableViewController class]])
{
UITableViewController *controller = (UITableViewController*)viewController;
[controller.tableView reloadData];
}
}
I just can't get this tableview to reload. I'm finding it hard to believe that I have to have a XIB file with an outlet defined just to get the table to reload.