// // JxnoticeScrollView.h // shiku_im // // Created by 123 on 2020/6/1. // Copyright © 2020 Reese. All rights reserved. // #import typedef void(^JxnoticeScrollViewBtnBlock)(UIButton *btn); typedef void(^JxnoticeScrollViewBtnBlock2)(UIButton *btn); @interface JxnoticeScrollView : UIView @property (nonatomic,strong)UIScrollView *noticeTitleScrolView; @property (nonatomic,strong) NSMutableArray *dataArr; @property (nonatomic,weak) UIButton *noticeBtn; @property (nonatomic,strong) UIButton *noticeLabel ; @property (nonatomic,copy) JxnoticeScrollViewBtnBlock2 jxnoticeScrollViewBtnBlock2; @property (nonatomic,copy) JxnoticeScrollViewBtnBlock jxnoticeScrollViewBtnBlock; @end /** _noticeView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, JX_SCREEN_WIDTH, 36)]; // _noticeView.backgroundColor = [UIColor whiteColor]; // _noticeView.hidden = NO; // _noticeLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, 0, 80, 36)]; // _noticeLabel.text = @"特别关心"; // _noticeLabel.textAlignment=NSTextAlignmentCenter; // _noticeLabel.textColor = HEXCOLOR(0x323232); // _noticeLabel.font = SYSFONT(13); // [_noticeView addSubview:_noticeLabel]; // // // _noticeScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 80, JX_SCREEN_WIDTH-95, 36)]; // _noticeScrollView.hidden = NO; // [self.view addSubview:_noticeScrollView]; // UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(hideNoticeView:)]; // [_noticeView addGestureRecognizer:tap]; // _noticeImgV = [[UIImageView alloc] initWithFrame:CGRectMake(15, 10, 16, 16)]; // _noticeImgV.image = [UIImage imageNamed:@"chat_notice"]; // [_noticeView addSubview:_noticeImgV]; // _showNoticeView = [[UIView alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_noticeLabel.frame)+5, 0, JX_SCREEN_WIDTH-125, 36)]; // _showNoticeView.backgroundColor = [UIColor whiteColor]; // _showNoticeView.clipsToBounds = YES; // [_noticeView addSubview:_showNoticeView]; // // _leftLabel = [[UILabel alloc] initWithFrame:_showNoticeView.bounds]; // _leftLabel.textColor = HEXCOLOR(0x323232); // _leftLabel.textAlignment = NSTextAlignmentLeft; // _leftLabel.lineBreakMode = NSLineBreakByCharWrapping; // _leftLabel.font = SYSFONT(13); // [_showNoticeView addSubview:_leftLabel]; // // _rightLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_leftLabel.frame), 0, JX_SCREEN_WIDTH-130, 36)]; // _rightLabel.textColor = HEXCOLOR(0x323232); // _rightLabel.font = SYSFONT(13); // _rightLabel.textAlignment = NSTextAlignmentLeft; // _rightLabel.lineBreakMode = NSLineBreakByCharWrapping; // [_showNoticeView addSubview:_rightLabel]; */