Search code examples
iphoneiosipaduiviewcontrollerxcode-storyboard

storyboard apply push without clicking on Button for(modal,push,custom)


Storyboard push modal custom segue.

I am working on storyboards and on click on a button on one view a web service gets called. After its success I need to push to other view controller. For this I have added a view controller and set its class from inspector to a view.

But I have not applied any segue on storyboard but I want to push to that view controller as

[self.navigationcontroller pushviewcontroller animated:YES];

Any help would be appreciated.

Thanks Vikas


Solution

  • Add a navigationController to you view and then push to the next view.