I try to display the image above the button, I get BLUE PRINT of Image over button, I already tried this -
override func viewDidLoad() { super.viewDidLoad() var birdTexture1 = UIImage(named: "fish.png") as UIImage button1.frame = CGRectMake(100, 10, 50, 150) button1.setImage(birdTexture1, forState: .Normal) button1.setTitle("Testing", forState: UIControlState.Normal) button1.addTarget(self, action: "btnAction:", forControlEvents: UIControlEvents.TouchUpInside) self.view.addSubview(button1)
In the above code, I get the following output

But the actual image is

source share