How to properly add a Navigation Controller to my Search View with hidden Navigation Bar?

Up vote 1 down vote favorite share g+ share fb share tw.

When my app is launched the first screen (view) the user sees when my app is launched is a search form without any navigation. Navigation will show up after search process is done and results are ready to be displayed. Where I'm stuck at is the proper way to make it work with the navigation controller.

So, assuming the app name is RealEsateProperties In RealEsatePropertiesAppDelegate. H: #import @class RealEsatePropertiesViewController; @interface RealEsatePropertiesAppDelegate : NSObject { UINavigationController *ListingNav; } @property (nonatomic, retain) IBOutlet UIWindow window; @property (nonatomic, retain) RealEsatePropertiesViewController *viewController; // Then I added this line for the navigation @property (nonatomic, retain) UINavigationController *ListingNav; @end and in RealEsatePropertiesAppDelegate. M: #import "RealEsatePropertiesAppDelegate.

H" #import "RealEsatePropertiesViewController. H" @synthesize window=_window; @synthesize window=_viewController; @synthesize ListingNav; @implementation RealEsatePropertiesAppDelegate - (BOOL)application:(UIApplication *)application didFinishLanchingWithOptions:(NSDictionary *)launchOptions { self.window. RootViewController = self.

ViewController; // Iadded the following 4 lines to try making the navigation thing work without showing any navigation bar on the first screen (that is the search form) self. ListingNav = UINavigationController alloc initWithRootController:self. ViewController; self.ListingNav.

NavigationBarHidden = YES; self. Window addSubView:ListingNav. View; self.

Window makeKeyAndVisible; return YES; } @end Am I doing anything wrong? Thx for helping, Stephane iphone ios iphone-sdk-4.0 uiviewcontroller uinavigationcontroller link|improve this question asked Sep 5 '11 at 7:06Stephane Kouakou55318 98% accept rate.

ViewController = RealEsatePropertiesViewController alloc init.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions