Modifing one variable from another view controller swift
I am developing an app in Swift that, in gist, tells people the price of Bitcoin in various currencies. To select the currency, the user chooses from a list in a view controller with a UITableView. This is currencyViewController, and it is presented from my main screen, viewController. What I want to happen is that, when the user dismisses currencyViewController, it passes a string to a UIButton in the main viewController. Here's the prepareForSegue function that should pass the data: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) { if (segue.identifier ==