Guest User

Untitled

a guest
Feb 18th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. let image = UIImage(named: "plus_card")
  2. let imageView = UIImageView(image: image!)
  3.  
  4. imageView.frame = CGRect(x: 60, y: -30, width: 60, height: 60)
  5.  
  6. let tap = UITapGestureRecognizer(target: self, action: #selector(self.handleTapNewCard(_:)))
  7. imageView.isUserInteractionEnabled = true
  8. imageView.addGestureRecognizer(tap)
  9. containerView.addSubview(imageView)
Add Comment
Please, Sign In to add comment