ARSegmentPager
ARSegmentPager copied to clipboard
Add ScrollView in CustomHeader
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.
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.
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