|
|
@@ -1018,7 +1018,6 @@
|
|
|
CGSize viewSize = bgView.size;
|
|
|
|
|
|
NSMutableAttributedString *levelImgAttri = [NSMutableAttributedString attachmentStringWithContent:bgView contentMode:UIViewContentModeScaleAspectFit attachmentSize:viewSize alignToFont:theFont alignment:YYTextVerticalAlignmentCenter];
|
|
|
- [levelImgAttri appendAttributedString:[[NSAttributedString alloc] initWithString:@" "]];
|
|
|
|
|
|
[contentStr insertAttributedString:[levelImgAttri copy] atIndex:0];
|
|
|
|
|
|
@@ -1042,8 +1041,6 @@
|
|
|
//生成NSAttributedString
|
|
|
NSMutableAttributedString *levelImgAttri = [NSMutableAttributedString attachmentStringWithContent:levelImg contentMode:UIViewContentModeScaleAspectFit attachmentSize:levelSize alignToFont:theFont alignment:YYTextVerticalAlignmentCenter];
|
|
|
// NSMutableAttributedString *levelImgAttri = [[NSAttributedString attributedStringWithAttachment:attachment] mutableCopy];
|
|
|
-
|
|
|
- [levelImgAttri appendAttributedString:[[NSAttributedString alloc] initWithString:@" "]];
|
|
|
|
|
|
[contentStr insertAttributedString:[levelImgAttri copy] atIndex:0];
|
|
|
|