Created
December 29, 2021 19:27
-
-
Save CodeNextPaco/72d7151d22fdeef4698d7c6ae916c6fa to your computer and use it in GitHub Desktop.
Project 1 detail view controller
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
import UIKit | |
class DetailViewController: UIViewController { | |
@IBOutlet var imageView: UIImageView! | |
var selectedImage:String! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
//use the selectedImage string set by the Table View Controller to load the right pic. | |
title = selectedImage | |
navigationItem.largeTitleDisplayMode = .never | |
imageView.image = UIImage(named: selectedImage) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
first commit