Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollView isnt scrolling #39

Open
peterpaulis opened this issue Apr 8, 2015 · 4 comments
Open

ScrollView isnt scrolling #39

peterpaulis opened this issue Apr 8, 2015 · 4 comments

Comments

@peterpaulis
Copy link

When pushing a NavigationView controller, with a view controller that has a scrollview

and setting
[self.animator setContentScrollView:detailViewController.scrollview];

disables the scroll view scrolling

any ideas?

@peterpaulis
Copy link
Author

this did the trick

- (void)setDragable:(BOOL)dragable
{
    _dragable = dragable;
    if (self.isDragable) {
        self.gesture = [[ZFDetectScrollViewEndGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
        self.gesture.delegate = self;
        
        UIView * view = self.modalController.view;
        if ([self.modalController isKindOfClass:[UINavigationController class]]) {
            view = [[(UINavigationController *)self.modalController topViewController] view];
        }
        [view addGestureRecognizer:self.gesture];
    }
}

@peterpaulis
Copy link
Author

note that the navigation bar itself is not draggable

@peterpaulis
Copy link
Author

there should be maybe a separate gesture recogniser for the scroll view

@av0c0der
Copy link

@peterpaulis Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants