Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let image = UIImage(named: "plus_card")
- let imageView = UIImageView(image: image!)
- imageView.frame = CGRect(x: 60, y: -30, width: 60, height: 60)
- let tap = UITapGestureRecognizer(target: self, action: #selector(self.handleTapNewCard(_:)))
- imageView.isUserInteractionEnabled = true
- imageView.addGestureRecognizer(tap)
- containerView.addSubview(imageView)
Add Comment
Please, Sign In to add comment