diff --git a/xplan-ios/Main/Room/View/AnimationView/XPStarredKitchenGiftView.m b/xplan-ios/Main/Room/View/AnimationView/XPStarredKitchenGiftView.m index 3a65cd42..579e7509 100644 --- a/xplan-ios/Main/Room/View/AnimationView/XPStarredKitchenGiftView.m +++ b/xplan-ios/Main/Room/View/AnimationView/XPStarredKitchenGiftView.m @@ -73,10 +73,10 @@ }]; [self.titleView mas_makeConstraints:^(MASConstraintMaker *make) { - make.width.mas_equalTo(260); - make.height.mas_equalTo(28); - make.top.mas_equalTo(self.backImageView).offset(23); - make.centerX.mas_equalTo(self.backImageView); + make.height.mas_equalTo(33); + make.top.mas_equalTo(self.backImageView).offset(19); + make.left.mas_equalTo(self.backImageView).offset(85); + make.right.mas_equalTo(self.backImageView).offset(-53); }]; [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) { @@ -104,14 +104,14 @@ nick = [nick substringToIndex:6]; } [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:@"倍奖励,获得" 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:@"钻石" color:[UIColor whiteColor] fontSize:fontSize]]; NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new]; paragraphStyle.lineBreakMode = NSLineBreakByCharWrapping; - paragraphStyle.lineSpacing = 4.0f;//行间距 + paragraphStyle.lineSpacing = 0.0f;//行间距 paragraphStyle.alignment = NSTextAlignmentCenter; paragraphStyle.baseWritingDirection = NSWritingDirectionLeftToRight; [attribute addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, attribute.length)];