Created
May 6, 2020 13:25
-
-
Save stevencurtis/14c4e66c9570aa0a3a221d8382613708 to your computer and use it in GitHub Desktop.
DetailViewController
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DetailViewController: UIViewController { | |
@IBOutlet weak var dataLabel: UILabel! | |
var dataString: String? | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
if let text = dataString { | |
dataLabel.text = text | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment