ios - how to transit to a view controller -


I have made a view controller in the storyboard and linked to another view controller. Now I have another view controller B and I would like to write a method which can transit from B to A. How can I do this? There is a Segue for controller A in the storyboard and the controller B is loaded from the second view which I created the program, so I can not set a seg in the storyboard.

Since you are using the storyboard, it is more accurate, try it: < Previous> UITorboard * sb = [UIStoryboard storyboardWithName: @ "Mainstoreboard" bundle: blue]; UIViewController * vc = [sb instantiateViewControllerWithIdentifier: @ "Your View Controller"]; Vc.modalTransitionStyle = UimodalTransitionStyleFlipHorizontal; [Self-present ViewController: animated vc: yes complete: zero];

But name identifier for your view, otherwise it will crash and will not work.

Then when you want to reduce the view: [Self-Removed Model View Controller Permission: Yes];

Comments