Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Draw This
($0.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-07-2009, 03:05 PM   #24 (permalink)
hstaniloff
Registered Member
 
Join Date: Apr 2009
Location: Setauket, NY
Posts: 133
hstaniloff is on a distinguished road
Default

Quote:
Originally Posted by mnemonic_fx View Post
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?
hstaniloff is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 174,543
Threads: 93,724
Posts: 401,260
Top Poster: BrianSlick (7,954)
Welcome to our newest member, jerrywenwu
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:06 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.