From de88ae127e305e0b153c327b073645f9353cace5 Mon Sep 17 00:00:00 2001 From: 单军华 <WindShan@danjunhuas-MacBook-Pro.local> Date: Wed, 18 Apr 2018 16:51:07 +0800 Subject: [PATCH] 新功能修改 --- pregnancy_guard/BaseProject/Views/Cell/AdNoticeView.m | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pregnancy_guard/BaseProject/Views/Cell/AdNoticeView.m b/pregnancy_guard/BaseProject/Views/Cell/AdNoticeView.m index 651f91a..f2f69ac 100644 --- a/pregnancy_guard/BaseProject/Views/Cell/AdNoticeView.m +++ b/pregnancy_guard/BaseProject/Views/Cell/AdNoticeView.m @@ -157,23 +157,23 @@ // [self.modelArray addObject:status]; //} // ������������ - self.model = model; - [self setUIView]; + + [self setUIView:model]; } return self; } --(void)setUIView +-(void)setUIView:(NoticeModel*)model { //self.backgroundColor = [UIColor clearColor]; - + self.model = model; self.noticeBK.image = [UIImage imageNamed:@"notice_bg"]; self.noticeLogo.image = [UIImage imageNamed:@"img_logo"]; - [self.noticeContext setText:[NSString stringWithFormat:@"���������PM2.5������������\n������������������������������"]]; - [self.noticeTitle setText:[NSString stringWithFormat:@"���������������������"]]; + [self.noticeContext setText:self.model.content]; + [self.noticeTitle setText:self.model.name]; // [self.lookDetailBtn setTitle:@"������������" forState:UIControlStateNormal]; [self.cancelLookBtn setTitle:@"��� ���" forState:UIControlStateNormal]; } -- Gitblit v1.8.0