JXHomeScrollView.m 947 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // JXHomeScrollView.m
  3. // shiku_im
  4. //
  5. // Created by os on 2020/7/8.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import "JXHomeScrollView.h"
  9. @implementation JXHomeScrollView
  10. /*
  11. // Only override drawRect: if you perform custom drawing.
  12. // An empty implementation adversely affects performance during animation.
  13. - (void)drawRect:(CGRect)rect {
  14. // Drawing code
  15. }
  16. */
  17. -(id)initWithFrame:(CGRect)frame
  18. {
  19. self = [super initWithFrame:frame];
  20. if (self) {
  21. }
  22. return self;
  23. }
  24. - (void)dealloc
  25. {
  26. }
  27. //- (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)view
  28. //{
  29. // NSLog(@"用户点击了scroll上的视图%@,是否开始滚动scroll",view);
  30. // //返回yes 是不滚动 scroll 返回no 是滚动scroll
  31. // return YES;
  32. //}
  33. //- (BOOL)touchesShouldCancelInContentView:(UIView *)view
  34. //{
  35. // NSLog(@"用户点击的视图 %@",view);
  36. // return NO;
  37. //}
  38. @end