Hi,
Whenever I try to set a button's background image using the code below, the image goes blank instead of it changing. Ideas?
Whenever I try to set a button's background image using the code below, the image goes blank instead of it changing. Ideas?
Code Block @IBAction func showSaveCatDescript(_ sender: Any) { if showingSaveCatDescript == false { toggleShowSaveCatDescript.setImage(UIImage(named: "questionmark.circle.fill"), for: .normal) saveCatDescript.isHidden = false showingSaveCatDescript = true }else if showingSaveCatDescript == true { toggleShowSaveCatDescript.setImage(UIImage(named: "questionmark.circle"), for: .normal) saveCatDescript.isHidden = true showingSaveCatDescript = false } }