Commit 3b0097391a2c77f7c7ec289f5e98672a44bc33df

Authored by iOS-Xiaowen
1 parent 9c97bb2b

no message

CNLiveBMineModule/Classes/View/CNLiveMineHeaderView.m
... ... @@ -108,7 +108,7 @@ static const NSInteger margin = 20;
108 108 make.width.height.offset(60);
109 109  
110 110 }];
111   -
  111 +
112 112 [_certification mas_remakeConstraints:^(MASConstraintMaker *make) {
113 113 make.centerY.equalTo(self.header.mas_centerY);
114 114 make.left.equalTo(self.header.mas_right).with.offset(margin/2.0);
... ... @@ -204,6 +204,11 @@ static const NSInteger margin = 20;
204 204 UIImage *xw_image = [self getImageWithImageName:image bundleName:@"CNLiveBMineModule" targetClass:[self class]];
205 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 212 NSAttributedString *str = [NSAttributedString attributedStringWithAttachment:attch];
208 213 NSAttributedString *space = [[NSAttributedString alloc]initWithString:@" "];
209 214  
... ...