Re: Is this possible....
Re: Is this possible....
- Subject: Re: Is this possible....
- From: Fritz Anderson <email@hidden>
- Date: Wed, 25 Aug 2010 10:16:27 -0500
[For the record, this is an iOS problem.]
On 24 Aug 2010, at 2:02 AM, Jennifer Usher wrote:
> EasterCalcResultsView *easterCalcResultsView =
> [[EasterCalcResultsView alloc] initWithNibName:@"EasterCalcResultsView" bundle:nil];
> [self.navigationController pushViewController:easterCalcResultsView animated:YES];
> [easterCalcResultsView release];
>
> It compiles fine, but when it reaches this code, nothing happens. EasterCalcResultsView.xib is the nib file I am trying use for the new view.
>
> Obviously I am missing something here. It might be as simple as that I cannot create a new view in a view based application, Or it might be that I am doing it totally wrong. So, I would appreciate any advice.
I think you may be close. See if self.navigationController is nil (po [self navigationController] in the gdb console window). I bet it is, and your MainWindow.xib does not have a UINavigationController in it.
Instantiate a throwaway navigation-based controller project and have a look at the MainWindow.xib file it generates. It should show you how to do what you want. Or, if your project isn't that big, you could use the navigation-based project and copy your existing code into it.
— F
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden