Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- view.addSubview(myObjcViewController.view)
- UISwipeGestureRecognizer *upSwipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(upButtonTapped)];
- upSwipe.numberOfTouchesRequired = 1;
- upSwipe.direction = UISwipeGestureRecognizerDirectionUp;
- [self.view addGestureRecognizer:upSwipe];
- [self.parentViewController.view addGestureRecognizer:upSwipe];
- // or
- [[[[UIApplication sharedApplication] delegate] window] addGestureRecognizer:upSwipe];
Add Comment
Please, Sign In to add comment