I'd like to pass through the data entered into the UITextFields
in the current view controller to a second view controller on the save button action. I'm using storyboards, could anyone advise me on how to achieve this? I'm using Xcode 6.
@IBAction func SAVEButtonTapped(sender: AnyObject) {
let viewcontroller = SecondViewController();
viewcontroller.name = self.nametextfield.text;
viewcontroller.phone = self.phonetextfield.text;
viewcontroller.city = self.citytextfield.text;
}