Advertisement
Guest User

Untitled

a guest
Aug 12th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement