maxep / MXSegmentedPager

Segmented pager view with Parallax header
MIT License
1.27k stars 252 forks source link

Scrolling Disable From Parallax Header #193

Closed KushThakkar closed 6 years ago

KushThakkar commented 6 years ago

I want to scrolling only from bottom of Segment Control.

If user scrolling above the segment control that should be disable for that.

Please check below attachment for graphical representation of this issue.

simulator screen shot 01-feb-2018 4 32 59 pm

Let me know if you need more Clarification.

KushThakkar commented 6 years ago

Write below code in MXScrollView.m

-(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer{ CGPoint point = [gestureRecognizer locationInView:self.parallaxHeader.view]; if(CGRectContainsPoint(self.parallaxHeader.view.frame, point)) return NO; return YES; }

Evyasafmordechai commented 6 years ago

https://github.com/maxep/MXSegmentedPager/issues/211

NileshKalathiya commented 5 years ago

@KushThakkar can you please explain this? I want to do the same