有什么方法可以将UIButton的图像更改为UIImageView的图像吗?
UIImageView的图像来自数据库。
任何帮助不胜感激,非常感谢!
您可以将
按钮的图像设置为 imageView.image
。
button.setImage(imageView.image, for: .normal)