I'm looking for a way to pass arguments from view controller to another. For example:
I've designed one view controller that receives username and password, and has a submit button which leads to another view controller, which I've designed in main.storyboard. The connection between the controllers is by dragging the button to the second view controller and choosing 'modal' in the connection type.
How can I transfer the user details to the second view controller?