ios - Navigating to a view controller modally and then navigation using push segue -


i have 2 storyboards. have situation have navigate view controller1 in storyboard 1 view controller2 in storyboard 2. view controller 1 added subview parent view controller. when click on row in table view in view controller 1, have navigate storyboard 2.

initially not detecting touch in table row. managed handling using single tap gesture. when click on row, able navigate storyboard2 viewcontroller 2 modally. after navigating ,i not able move anywhere on button click in view controller 2 because uses push segues there.

here sample code used navigate.

 *nsstring * storyboardname = @"oppotunitystoryboard";   nsstring * viewcontrollerid = @"agreementmainviewcontroller";   uistoryboard * storyboard = [uistoryboard storyboardwithname:storyboardname bundle:nil];  agreementmainviewcontroller *controller = (agreementmainviewcontroller *)[storyboard instantiateviewcontrollerwithidentifier:viewcontrollerid];  controller.producttransactionentity = producttransactionentity;  [self presentviewcontroller:controller animated:yes completion:nil];* 

you have embed viewcontroller 2 in navigation controller in order able use push segues when presented modally.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -