Sending data with Segue with Swift
问题 I have two view controllers and two views. In my first view, I set the variable \'currentUser\' to false. I need to be able to set \'currentUser\' to true in the second view controller. When trying to reference \'currentUser\' from the second view it\'s not picking it up as \'currentUser\' is defined in the first view controller. How do I carry across variables with segue? 回答1: Set values from Any ViewController to a Second One using segues Like this: override func prepareForSegue(segue: