ios - Adding additional UINavigationController to a child view controller -


i'm working on ipad app presents smaller view slides out side of window. need view run independently rest of app, , need have it's own navigation controller segues can performed in it's table views. presenting view not issue. problem i'm having cannot figure out how set uinavigationcontroller have root view of smaller view.

i present view adding it's view controller child view addchildviewcontroller: , move parent view (the presenting view controller).

i've created small view controller in storyboard, , load view controller it's identifier. here relevant portion of storyboard...

enter image description here

the view loads without issue, when select cell in turn calls [self performseguewithidentifier:gameidentifier sender:self];, following error

terminating app due uncaught exception 'nsgenericexception', reason: 'could not find navigation controller segue 'trivia'. push segues can used when source controller managed instance of uinavigationcontroller.'

i've tried embedding view in navigation controller in storyboard, had same result.

i'd happy provide clarification or additional details. suggestions appreciated! thanks!

you need embed "games award view" in navigation controller, , when you're calling addchildviewcontroller:, pass navigation controller argument, not games view.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -