All things iOS & Swift

How to Navigate from one View Controller to another using Swift2 Programmatically

Here’s a simple tutorial on how to navigate from one view controller to another programatically.

First, create a swift class file(NextViewController) for the view controller you want to jump to.

Assign a Storyboard ID like shown below.

Screen Shot 2015-09-27 at 12.26.58 PM

from the root view controller’s source code, insert this code snippet inside a button.




Leave A Comment

Your email address will not be published.