Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let happinessImage = UIImage(named: "ReadyHappiness")
- let happinessButton = UIButton(type: .custom)
- happinessButton.frame = CGRect(x: 0, y: 20 + view.frame.width/1.7 * 2 + 6, width: view.frame.width, height: view.frame.width/1.7)
- happinessButton.setImage(happinessImage, for: .normal)
- happinessButton.addTarget(self, action: #selector(buttonHappinessClick), for:.touchUpInside)
- scrollView.addSubview(happinessButton)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement