Quellcode durchsuchen

修改分类标签利润bug

jikaipeng vor 5 Jahren
Ursprung
Commit
6c82085073

BIN
KuDianProject.xcworkspace/xcuserdata/kaipeng.xcuserdatad/UserInterfaceState.xcuserstate


+ 1 - 0
KuDianProject/LiveData/Controller/KDPLiveLeftViewController.m

@@ -66,6 +66,7 @@
66 66
     tipLabel.textColor = [UIColor colorWithHex:0xFF7075];
67 67
     tipLabel.layer.cornerRadius = 11;
68 68
     tipLabel.layer.masksToBounds = YES;
69
+    tipLabel.textAlignment = NSTextAlignmentCenter;
69 70
     tipLabel.text = @"目前只统计直播期间该商品订单数哦";
70 71
     tipLabel.centerX = self.view.centerX;
71 72
     [self.view addSubview:tipLabel];

+ 2 - 1
KuDianProject/SupplyGood/View/KDPSupplyGoodCollectionViewCell.m

@@ -84,7 +84,8 @@
84 84
     self.profitLabel = [[UILabel alloc] init];
85 85
     self.profitLabel.textColor = [UIColor whiteColor];
86 86
     self.profitLabel.font = [UIFont fontWithName:@"PingFangSC-Medium" size: 16];
87
-    self.profitLabel.textAlignment = NSTextAlignmentCenter;
87
+    self.profitLabel.adjustsFontSizeToFitWidth = YES;
88
+    self.profitLabel.textAlignment = NSTextAlignmentLeft;
88 89
     [self.contenAView addSubview:self.profitLabel];
89 90
 }
90 91