Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (BOOL)gestureRecognizer:(UIPanGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UISwipeGestureRecognizer *)otherGestureRecognizer
- {
- return YES;
- }
- class ViewController: UIViewController, UIGestureRecognizerDelegate {
- override func viewDidLoad() {
- super.viewDidLoad()
- var scrollView = UIScrollView(frame: self.view.frame)
- scrollView.delegate = self
- }
- func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
- return true
- }
- func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
- return true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement