I am a newbie with Objective C. How would I set the background of this button to an image (image is already in the resources folder in XCode, \"blue_button.png\") instead o
Swift 4+
var btnClear = UIButton() btnClear = UIButton(type: .custom) btnClear.frame = CGRect(x: 115, y: 200, width: 90, height: 40) btnClear.setBackgroundImage(UIImage(named: "blue_button.png"), for: .normal) view.addSubview(btnClear)