I made a view controller A in storyboard and linked with other view controller. Now I have another view controller B and I want to write a method that can transit from B to A. How can I do this?
There is a segue to controller A in storyboard.
And controller B is loaded from another view I created programmatically so I can’t set a segue in storyboard.
I made a view controller A in storyboard and linked with other view controller.
Share
Since you are using storyboard. This is more accurate, try this:
But be sure to name your view’s
identifierotherwise it will crash and wont work.Then when you want to dimiss the view: