D
D
Dmitry Golovanov2017-10-13 20:19:18
iOS
Dmitry Golovanov, 2017-10-13 20:19:18

How to navigate between Storyboards?

Good day!
Interested in the question of how you can make the transition between two storyboards programmatically.
I know how to create such a thing using StoryboardReference.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Golovanov, 2017-10-13
@golovanovd

let storyboard = UIStoryboard(name: "NameOfYourStoryboard", bundle: Bundle.main)
            let viewController = storyboard.instantiateInitialViewController()
            
            if let viewController = viewController {
                self.present(viewController, animated: true, completion: nil)
            }

D
David Koifman, 2017-10-14
@Davka1900

You can also take hold of one controller and drag it to the one you need, a black window will appear there and select show.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question