Quote:
Originally Posted by mnemonic_fx
That's not an assignment, but it's a way to declare that a class is adopting a formal protocol, in other words it's conforming to a protocol.
UITableViewController already conforms to those protocols.
Preferably when you allocate the SubscriptionDetailViewController instance.
|
I removed the UITableViewDelegate,UITableViewSource protocol assignments on my SubscriptionDetailController class definition as follows:
Code:
@interface SubscriptionDetailController : SecondLevelViewController <UINavigationControllerDelegate>
The code works fine with this modification.
I have code in my first view controller's implementation file as follows:
Code:
SubscriptionDetailController *nextViewCtrlr = [[SubscriptionDetailController alloc] initWithStyle:UITableViewStylePlain];
PgmAppDelegate *myAppDelegate = [[UIApplication sharedApplication] delegate];
[[myAppDelegate navController] setDelegate:nextViewCtrlr];
With this modification, my code crashes when I pop back to this SubsriptionDetailController. I tried setting a break point in the
Code:
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
but I get the dreaded obj_msg. Any ideas?