ARSegmentPager icon indicating copy to clipboard operation
ARSegmentPager copied to clipboard

Add ScrollView in CustomHeader

Open vinh-savvycom opened this issue 9 years ago • 2 comments

Current If CustomHeader have image, app run perfect. But If I have a UIScrollView in CustomHeader and scrollview have many image (scroll horizontal image in scrollview), I can't scroll table from touch on CustomHeader. I debug and I see app don't call in funtion if I scroll from CustomHeader -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context

Please help me check it.

vinh-savvycom avatar Sep 22 '15 04:09 vinh-savvycom

You can look up a method called hitTest,may be it's helpful ! 发自我的 iPhone

在 2015年9月22日,12:24,vinh-savvycom [email protected] 写道:

Current If CustomHeader have image, app run perfect. But If I have a ScrollView in CustomHeader and scrollview have many image (scroll horizontal image in scrollview), I can't scroll table from touch on CustomHeader. I debug and I see app don't call in funtion if I scroll from CustomHeader -(void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context

Please help me check it.

— Reply to this email directly or view it on GitHub.

AugustRush avatar Sep 22 '15 04:09 AugustRush

override func hitTest(point: CGPoint, withEvent event: UIEvent?) -> UIView? { let view = super.hitTest(point, withEvent: event) if view == self.scrollView { return nil } return view }

I called hitTest in CustomHeader, I scroll down ok, but I can't scroll horizontal image in scrollview Please help me

vinh-savvycom avatar Sep 22 '15 04:09 vinh-savvycom