Monday, 15 February 2010

ios - Navigation Bar not visible in simulator but visible in storyboard -



ios - Navigation Bar not visible in simulator but visible in storyboard -

additional info >>

just noticed in application didfinishlaunchingwithoptions: i've got this

self.window = [[uiwindow alloc] initwithframe:uiscreen.mainscreen.bounds]; uiviewcontroller *viewcontroller = [[uiviewcontroller alloc] init]; viewcontroller = [storyboard instantiateviewcontrollerwithidentifier:@"frontscreen"]; self.window.rootviewcontroller = viewcontroller; [self.window makekeyandvisible];

is part of problem?

r

=================

hi i'm developing app in storyboard. i'm using publicly available swrevealviewcontroller manage navigation bar reveal menus.

i've set simple uiviewcontroller, lets phone call welcomeviewcontroller. i've dragged segue revealviewcontroller new welcomeviewcontroller , i've embed in navigation controller. navigation bar i've added menu reveal button.

all looks in storyboard, when run in simulator navigation bar isn't there. i've added

self.navigationcontroller.navigationbarhidden = no;

in viewwillappear method - no avail.

i should mention i've got entire branch of viewcontrollers , functionality coming off revealviewcontroller no problems.

any help. i've search stack overflow found nil matches specific problems. advice gratefully received.

r

try adding

[[uiapplication sharedapplication] setstatusbarhidden:no];

in view controller's viewdidload method

ios uinavigationcontroller storyboard

No comments:

Post a Comment