Swift Take a variable in second File ButtonViewController.swift
问题 In My project i have two file ViewController.swift and ButtonViewController.swift . In ViewController i have this code var nomeLabel:String! func goToView(sender: UIButton!) { // self.performSegueWithIdentifier("goToView", sender: self) // I used This for Go to Second View in Another moment var label: UILabel = UILabel() label.frame = CGRectMake(self.view.frame.size.width/2, 10, 150, 21); label.backgroundColor = UIColor.blackColor() label.textColor = UIColor.whiteColor() label.textAlignment =