using image literal to set the image views picture is a blatant lie
all it does is error
you need this code :
imgDice1.image = UIImage(named: "DiceTwo")
DiceTwo is the new images file name
all it does is error
you need this code :
Swift:
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var imgDice1: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
imgDice1.image = UIImage(named: "DiceTwo")
}
}
imgDice1.image = UIImage(named: "DiceTwo")
DiceTwo is the new images file name