Commit 3b0097391a2c77f7c7ec289f5e98672a44bc33df
1 parent
9c97bb2b
no message
Showing
1 changed file
with
6 additions
and
1 deletions
CNLiveBMineModule/Classes/View/CNLiveMineHeaderView.m
| @@ -108,7 +108,7 @@ static const NSInteger margin = 20; | @@ -108,7 +108,7 @@ static const NSInteger margin = 20; | ||
| 108 | make.width.height.offset(60); | 108 | make.width.height.offset(60); |
| 109 | 109 | ||
| 110 | }]; | 110 | }]; |
| 111 | - | 111 | + |
| 112 | [_certification mas_remakeConstraints:^(MASConstraintMaker *make) { | 112 | [_certification mas_remakeConstraints:^(MASConstraintMaker *make) { |
| 113 | make.centerY.equalTo(self.header.mas_centerY); | 113 | make.centerY.equalTo(self.header.mas_centerY); |
| 114 | make.left.equalTo(self.header.mas_right).with.offset(margin/2.0); | 114 | make.left.equalTo(self.header.mas_right).with.offset(margin/2.0); |
| @@ -204,6 +204,11 @@ static const NSInteger margin = 20; | @@ -204,6 +204,11 @@ static const NSInteger margin = 20; | ||
| 204 | UIImage *xw_image = [self getImageWithImageName:image bundleName:@"CNLiveBMineModule" targetClass:[self class]]; | 204 | UIImage *xw_image = [self getImageWithImageName:image bundleName:@"CNLiveBMineModule" targetClass:[self class]]; |
| 205 | attch.image = xw_image; | 205 | attch.image = xw_image; |
| 206 | // 创建带有图片的富文本 | 206 | // 创建带有图片的富文本 |
| 207 | + CGFloat top = 4; | ||
| 208 | + if ([image isEqualToString:@"CNLiveBMineModule.bundle/mine_wjj_certification"]) { | ||
| 209 | + top = 2; | ||
| 210 | + } | ||
| 211 | + attch.bounds = CGRectMake(0, top, xw_image.size.width, xw_image.size.height); | ||
| 207 | NSAttributedString *str = [NSAttributedString attributedStringWithAttachment:attch]; | 212 | NSAttributedString *str = [NSAttributedString attributedStringWithAttachment:attch]; |
| 208 | NSAttributedString *space = [[NSAttributedString alloc]initWithString:@" "]; | 213 | NSAttributedString *space = [[NSAttributedString alloc]initWithString:@" "]; |
| 209 | 214 |