Guest User

Untitled

a guest
May 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. view.addSubview(myObjcViewController.view)
  2.  
  3. UISwipeGestureRecognizer *upSwipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(upButtonTapped)];
  4. upSwipe.numberOfTouchesRequired = 1;
  5. upSwipe.direction = UISwipeGestureRecognizerDirectionUp;
  6. [self.view addGestureRecognizer:upSwipe];
  7.  
  8. [self.parentViewController.view addGestureRecognizer:upSwipe];
  9.  
  10. // or
  11.  
  12. [[[[UIApplication sharedApplication] delegate] window] addGestureRecognizer:upSwipe];
Add Comment
Please, Sign In to add comment