daily pastebin goal
9%
SHARE
TWEET

Untitled

a guest Aug 12th, 2017 44 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (BOOL)gestureRecognizer:(UIPanGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UISwipeGestureRecognizer *)otherGestureRecognizer
  2. {
  3.     return YES;
  4. }
  5.    
  6. class ViewController: UIViewController, UIGestureRecognizerDelegate {
  7.    
  8. override func viewDidLoad() {
  9.     super.viewDidLoad()
  10.     var scrollView = UIScrollView(frame: self.view.frame)
  11.     scrollView.delegate = self
  12. }
  13.    
  14. func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
  15.     return true
  16. }
  17.    
  18. func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
  19.     return true
  20. }
RAW Paste Data
Top