iphone - Hiding the UINavigationController on the first .xib file only -


this may stupid question programmatically added uinavigationcontroller app. if possible, wanted add top of windows except first .xib. maybe hide on first .xib. possible that? think of first .xib file opens rest of app cover page , rather blue bar not show @ top of that. wish show pictures don't have enough reps yet. thanks!

below code believe helps me provide each page of app bar:

#import "mccormick_taylorviewcontroller.h"  @implementation mccormick_taylorappdelegate  @synthesize window = _window; @synthesize viewcontroller = _viewcontroller;  - (void)dealloc {     [_window release];     [_viewcontroller release];     [super dealloc]; }  - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:       (nsdictionary *)launchoptions {     self.window = [[[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]]        autorelease];     // override point customization after application launch.     self.viewcontroller = [[[mccormick_taylorviewcontroller alloc]      initwithnibname:@"mccormick_taylorviewcontroller" bundle:nil] autorelease];     uinavigationcontroller * navcontroller = [[uinavigationcontroller alloc]       initwithrootviewcontroller:self.viewcontroller];     self.window.rootviewcontroller = navcontroller;     [self.window makekeyandvisible];      return yes; } 

in mccormick_taylorviewcontroller's viewwillapper: method

just use bellow code...

[self.navigationcontroller setnavigationbarhidden:no animated:yes]; 

and in other view controller in navigationbar ot display in viewcontroller's viewwillappear use bellow code..

[self.navigationcontroller setnavigationbarhidden:no animated:no]; 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -