I want to transition from ViewController to secondViewController, when the user presses a UIButton, using code only in Swift.
//Function to transition func
In Swift 2.0 you can use this method:
let registrationView = LMRegistration() self.presentViewController(registrationView, animated: true, completion: nil)