String型ではないので画像が入れられないのはわかるのですがどのようなコードを書けば入れられますでしょうか?
教えて頂ければ幸いです。。
swift
1import UIKit 2 3class ViewController: UIViewController { 4 5 @IBOutlet weak var animalLabel: UILabel! 6 @IBOutlet weak var resultLabel: UILabel! 7 override func viewDidLoad() { 8 super.viewDidLoad() 9 // Do any additional setup after loading the view, typically from a nib. 10 } 11 12 override func didReceiveMemoryWarning() { 13 super.didReceiveMemoryWarning() 14 // Dispose of any resources that can be recreated. 15 } 16 17 @IBAction func tapped1(_ sender: Any) { 18 animalLabel.text = "" ????ここ 19 resultLabel.text = "結果発表" 20 } 21 22} 23
回答2件
あなたの回答
tips
プレビュー