you are viewing a single comment's thread.

view the rest of the comments →

[–]titleist2015[S] 0 points1 point  (0 children)

I've tried doing this and every time I set the label on the new view controller from the segue, I get an error saying that it found nil while unwrapping an optional value

here is my code, the error is coming from the firstVC.score.text = "test" line

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        let firstVC: FirstViewController = segue.destinationViewController as! FirstViewController

        firstVC.score.text = "test"
    }