初めまして。
プログラムを勉強中の者です。
お知恵を貸していただけると助かります。
x-codeのボタンエラーを解決してほしい。
###発生している問題・エラーメッセージ
ボタンを押して画像を変えようとするとエラーが出る。
エラーメッセージ ![イメージ説明](bb3612d84da4caa847a473e008d98412.png) import UIKit class ViewController: UIViewController { @IBOutlet var backimageview: UIImageView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } @IBAction func cheange(_ sender: Any) { backimageview.image=UIImage(named:"back2.jpg") } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } } ###該当のソースコード import UIKit class ViewController: UIViewController { @IBOutlet var backimageview: UIImageView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } @IBAction func cheange(_ sender: Any) { backimageview.image=UIImage(named:"back2.jpg") } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } } ###試したこと ![課題に対してアプローチしたことを記載してください](7e8eefe868f475fb82c1c6411cdc1a3f.png) ###補足情報(言語/FW/ツール等のバージョンなど) より詳細な情報
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/13 07:50