适配深海
This commit is contained in:
@@ -73,10 +73,10 @@
|
|||||||
}];
|
}];
|
||||||
|
|
||||||
[self.titleView mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.titleView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
make.width.mas_equalTo(260);
|
make.height.mas_equalTo(33);
|
||||||
make.height.mas_equalTo(28);
|
make.top.mas_equalTo(self.backImageView).offset(19);
|
||||||
make.top.mas_equalTo(self.backImageView).offset(23);
|
make.left.mas_equalTo(self.backImageView).offset(85);
|
||||||
make.centerX.mas_equalTo(self.backImageView);
|
make.right.mas_equalTo(self.backImageView).offset(-53);
|
||||||
}];
|
}];
|
||||||
|
|
||||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||||
@@ -104,14 +104,14 @@
|
|||||||
nick = [nick substringToIndex:6];
|
nick = [nick substringToIndex:6];
|
||||||
}
|
}
|
||||||
[attribute appendAttributedString:[self createAttribute:nick color:[ThemeColor colorWithHexString:@"#FEF23E"] fontSize:fontSize]];
|
[attribute appendAttributedString:[self createAttribute:nick color:[ThemeColor colorWithHexString:@"#FEF23E"] fontSize:fontSize]];
|
||||||
[attribute appendAttributedString:[self createAttribute:@"在星级厨房抽中 " color:[UIColor whiteColor] fontSize:fontSize]];
|
[attribute appendAttributedString:[self createAttribute:@"在深海奇缘抽中 " color:[UIColor whiteColor] fontSize:fontSize]];
|
||||||
[attribute appendAttributedString:[self createAttribute:[NSString stringWithFormat:@"%ld", giftInfo.itemMultiple] color:[ThemeColor colorWithHexString:@"#00EAFF"] fontSize:fontSize]];
|
[attribute appendAttributedString:[self createAttribute:[NSString stringWithFormat:@"%ld", giftInfo.itemMultiple] color:[ThemeColor colorWithHexString:@"#00EAFF"] fontSize:fontSize]];
|
||||||
[attribute appendAttributedString:[self createAttribute:@"倍奖励,获得" color:[ThemeColor colorWithHexString:@"#FEF23E"] fontSize:fontSize]];
|
[attribute appendAttributedString:[self createAttribute:@"倍奖励,获得" color:[ThemeColor colorWithHexString:@"#FEF23E"] fontSize:fontSize]];
|
||||||
[attribute appendAttributedString:[self createAttribute:[NSString stringWithFormat:@" %ld", giftInfo.diamonds] color:[ThemeColor colorWithHexString:@"#00EAFF"] fontSize:fontSize]];
|
[attribute appendAttributedString:[self createAttribute:[NSString stringWithFormat:@" %ld", giftInfo.diamonds] color:[ThemeColor colorWithHexString:@"#00EAFF"] fontSize:fontSize]];
|
||||||
[attribute appendAttributedString:[self createAttribute:@"钻石" color:[UIColor whiteColor] fontSize:fontSize]];
|
[attribute appendAttributedString:[self createAttribute:@"钻石" color:[UIColor whiteColor] fontSize:fontSize]];
|
||||||
NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new];
|
NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new];
|
||||||
paragraphStyle.lineBreakMode = NSLineBreakByCharWrapping;
|
paragraphStyle.lineBreakMode = NSLineBreakByCharWrapping;
|
||||||
paragraphStyle.lineSpacing = 4.0f;//行间距
|
paragraphStyle.lineSpacing = 0.0f;//行间距
|
||||||
paragraphStyle.alignment = NSTextAlignmentCenter;
|
paragraphStyle.alignment = NSTextAlignmentCenter;
|
||||||
paragraphStyle.baseWritingDirection = NSWritingDirectionLeftToRight;
|
paragraphStyle.baseWritingDirection = NSWritingDirectionLeftToRight;
|
||||||
[attribute addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, attribute.length)];
|
[attribute addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, attribute.length)];
|
||||||
|
Reference in New Issue
Block a user