// // JXHomeScrollView.m // shiku_im // // Created by os on 2020/7/8. // Copyright © 2020 Reese. All rights reserved. // #import "JXHomeScrollView.h" #import "UIScrollView+JXUITouch.h" @implementation JXHomeScrollView /* // Only override drawRect: if you perform custom drawing. // An empty implementation adversely affects performance during animation. - (void)drawRect:(CGRect)rect { // Drawing code } */ -(id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { } return self; } - (void)dealloc { } - (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)view { NSLog(@"用户点击了scroll上的视图%@,是否开始滚动scroll",view); //返回yes 是不滚动 scroll 返回no 是滚动scroll return YES; } - (BOOL)touchesShouldCancelInContentView:(UIView *)view { NSLog(@"用户点击的视图 %@",view); return NO; } @end