Category: Swift Tutorials

Techniques in Loading View Controllers and Passing Values Between Them – Part 2

In the first part of this two-step tutorial I presented the techniques for loading and presenting a view controller. Those techniques include both graphical and programming approaches, so everybody can choose what fits best to them when a new view controller is about to be presented. However, in that post I didn’t show at all how data can be sent back and forth between two view controllers, so I’m going to do so right next.

Techniques in Loading View Controllers and Passing Values Between Them – Part 1

Most iOS apps that show multiple content, also contain multiple¬†view controllers. If your app is not based on a navigation controller or a tab bar controller, but it’s a single view based application, then loading and presenting the various view controllers to the user it’s a task that has to be done manually. Generally speaking, loading view controllers either through storyboards or purely programmatically is not a hard job, however how easy or straightforward are all these for a new...