diskListBgView.m 681 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // diskListBgView.m
  3. // 隐私保护
  4. //
  5. // Created by xd h on 2024/1/23.
  6. //
  7. #import "diskListBgView.h"
  8. @implementation diskListBgView
  9. - (id)initWithFrame:(CGRect)frame{
  10. self = [super initWithFrame:frame];
  11. [self setBackgroundColor:[UIColor hwColor:@"000000" alpha:0.5]];
  12. [self drawAnyView];
  13. return self;
  14. }
  15. - (void)drawAnyView
  16. {
  17. //self.backgroundColor = [UIColor redColor];
  18. UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(didClickTailViewFun)];
  19. [self addGestureRecognizer:tap];
  20. }
  21. - (void)didClickTailViewFun
  22. {
  23. if(_didTapWhitePlace){
  24. _didTapWhitePlace();
  25. }
  26. }
  27. @end