【发布时间】:2020-08-26 05:36:15
【问题描述】:
所以我用这段代码来展示我的图片
class ViewController: UIViewController {
@IBOutlet var imageView: UIImageView!
@IBAction func ness(_ sender: Any) {
// when button tapped this code will execute
imageView.isHidden = false
}
override func viewDidLoad() {
super.viewDidLoad()
imageView.isHidden = true
}
}
现在我希望图像在出现几秒钟后不可见 我想多次这样做,我应该为 otehr 图像视图和其他按钮加倍相同的代码吗?
【问题讨论】: