在swift中用一个按钮更改图像

时间:2017-09-18 11:43:54

标签: swift xcode

我遇到了让我的代码在xcode中工作的问题。 以下代码行正在提出问题。

@IBAction func yesbutton(_ sender: Any) {
        MainImage.image = UIImage(named:"timian")
    }

错误已执行:     @UIApplicationMain class AppDelegate:UIResponder,UIApplicationDelegate {thraed 1:signal SIGABRT

谁能告诉我这有什么问题?

0 个答案:

没有答案