JxnoticeScrollView.h 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // JxnoticeScrollView.h
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/6/1.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void(^JxnoticeScrollViewBtnBlock)(UIButton *btn);
  10. typedef void(^JxnoticeScrollViewBtnBlock2)(UIButton *btn);
  11. @interface JxnoticeScrollView : UIView
  12. @property (nonatomic,strong)UIScrollView *noticeTitleScrolView;
  13. @property (nonatomic,strong) NSMutableArray *dataArr;
  14. @property (nonatomic,weak) UIButton *noticeBtn;
  15. @property (nonatomic,strong) UIButton *noticeLabel ;
  16. @property (nonatomic,copy) JxnoticeScrollViewBtnBlock2 jxnoticeScrollViewBtnBlock2;
  17. @property (nonatomic,copy) JxnoticeScrollViewBtnBlock jxnoticeScrollViewBtnBlock;
  18. @end
  19. /**
  20. _noticeView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, JX_SCREEN_WIDTH, 36)];
  21. // _noticeView.backgroundColor = [UIColor whiteColor];
  22. // _noticeView.hidden = NO;
  23. // _noticeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 80, 36)];
  24. // _noticeLabel.text = @"特别关心";
  25. // _noticeLabel.textAlignment=NSTextAlignmentCenter;
  26. // _noticeLabel.textColor = HEXCOLOR(0x323232);
  27. // _noticeLabel.font = SYSFONT(13);
  28. // [_noticeView addSubview:_noticeLabel];
  29. //
  30. //
  31. // _noticeScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 80, JX_SCREEN_WIDTH-95, 36)];
  32. // _noticeScrollView.hidden = NO;
  33. // [self.view addSubview:_noticeScrollView];
  34. // UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideNoticeView:)];
  35. // [_noticeView addGestureRecognizer:tap];
  36. // _noticeImgV = [[UIImageView alloc] initWithFrame:CGRectMake(15, 10, 16, 16)];
  37. // _noticeImgV.image = [UIImage imageNamed:@"chat_notice"];
  38. // [_noticeView addSubview:_noticeImgV];
  39. // _showNoticeView = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_noticeLabel.frame)+5, 0, JX_SCREEN_WIDTH-125, 36)];
  40. // _showNoticeView.backgroundColor = [UIColor whiteColor];
  41. // _showNoticeView.clipsToBounds = YES;
  42. // [_noticeView addSubview:_showNoticeView];
  43. //
  44. // _leftLabel = [[UILabel alloc] initWithFrame:_showNoticeView.bounds];
  45. // _leftLabel.textColor = HEXCOLOR(0x323232);
  46. // _leftLabel.textAlignment = NSTextAlignmentLeft;
  47. // _leftLabel.lineBreakMode = NSLineBreakByCharWrapping;
  48. // _leftLabel.font = SYSFONT(13);
  49. // [_showNoticeView addSubview:_leftLabel];
  50. //
  51. // _rightLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_leftLabel.frame), 0, JX_SCREEN_WIDTH-130, 36)];
  52. // _rightLabel.textColor = HEXCOLOR(0x323232);
  53. // _rightLabel.font = SYSFONT(13);
  54. // _rightLabel.textAlignment = NSTextAlignmentLeft;
  55. // _rightLabel.lineBreakMode = NSLineBreakByCharWrapping;
  56. // [_showNoticeView addSubview:_rightLabel];
  57. */