-
Notifications
You must be signed in to change notification settings - Fork 338
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
Starting to scroll from the bar #45
Comments
I'm not sure if I completely understand your issue, but I'll take a guess. Setting |
It does indeed work using userInteractionEnabled set to NO. But the thing is, I actually need the interactions enabled on my bar because I do stuff according to these interactions. Anyway, nothing much you can do I guess. Thanks ;) |
You should be able to implement some custom logic for that by subclassing |
implementing that is fair easy:
if (CGRectContainsPoint(self.navBar.bounds, point))
{
targetView targetView = self.navBar;
// The target view may have its view hierarchy,
// so call its hitTest method to return the right hit-test view which cause touch forwarded to navBar buttons
UIView *finalView = [targetView hitTest:point withEvent:event];
return finalView;
}
return [super hitTest:point withEvent:event]; |
Hello,
First of all great library ! That being said, would it be possible to start the process of stretching the bar, as you start scrolling from that bar itself. I hope you get me, now it only works (at least for me) if i start scrolling from what's below my bar, not from the bar itself.
Thanks :)
The text was updated successfully, but these errors were encountered: