cocoa touch - viewcontroller with a uinvaigationcontroller when pop up does not show the navbar -


i'm using storyboards this. on storyboard have "mainpage" uiviewcontroller has button when tap call uiviewcontroller (choosewinner) pop up. choosewinner vc has uinavigation controller attached it, reason why can go , forth easily. can call uiview modal pop doesn't show it's uinavigation.

this method called when button tapped. thoughts?

- (void)updatewinner{     uistoryboard *storyboard = [uistoryboard storyboardwithname:@"mainstoryboard" bundle:nil];      matchwinnerviewcontroller *vc = [storyboard instantiateviewcontrollerwithidentifier:@"winnerviewcontroller"];      vc.modalpresentationstyle = uimodalpresentationformsheet;     vc.modaltransitionstyle = uimodaltransitionstylecrossdissolve;     [self presentviewcontroller:vc animated:no completion:nil];     vc.view.superview.autoresizingmask = uiviewautoresizingflexibletopmargin | uiviewautoresizingflexiblebottommargin;     vc.view.superview.bounds = cgrectmake(0, 0, 800, 600); } 

even though have matchwinnerviewcontroller uinavigationcontroller attached in storyboard, if want present modally uinavigationcontroller, need supply navigation controller parameter method instantiateviewcontrollerwithidentifier.

the reason modal presentation, takes root view controller, , navigation controller view controller.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -