Passing data between 2 view controllers in Swift
问题 I have 2 view controllers, created separately. It's not navigation controller or other. I've 2 files for each of them: ViewController.swift , SecondViewController.swift . Second VC is called audioList In 1-st VC I have a button and by clicking on it I'm opening second VC using code dispatch_sync(dispatch_get_main_queue(), { () -> Void in let storyboard = UIStoryboard(name: "Main", bundle: nil) let controller = storyboard.instantiateViewControllerWithIdentifier("SecondViewController") as!