浏览代码

make not gay

pull/1/head
Burrit0z 4 年前
父节点
当前提交
6aafd4f65a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      KAIBattery.mm

+ 2
- 2
KAIBattery.mm 查看文件

} }
[label setTextColor:[UIColor whiteColor]]; [label setTextColor:[UIColor whiteColor]];
label.lineBreakMode = NSLineBreakByWordWrapping; label.lineBreakMode = NSLineBreakByWordWrapping;
label.numberOfLines = 0;
label.numberOfLines = 1;
[label setText:labelText]; [label setText:labelText];


_UIBatteryView *battery = [[_UIBatteryView alloc] init]; _UIBatteryView *battery = [[_UIBatteryView alloc] init];
[percentLabel setTextColor:[UIColor whiteColor]]; [percentLabel setTextColor:[UIColor whiteColor]];
percentLabel.lineBreakMode = NSLineBreakByWordWrapping; percentLabel.lineBreakMode = NSLineBreakByWordWrapping;
[percentLabel setTextAlignment:NSTextAlignmentRight]; [percentLabel setTextAlignment:NSTextAlignmentRight];
percentLabel.numberOfLines = 0;
percentLabel.numberOfLines = 1;
[percentLabel setText:[NSString stringWithFormat:@"%ld%%", (long)((NSInteger) batteryPercentage)]]; [percentLabel setText:[NSString stringWithFormat:@"%ld%%", (long)((NSInteger) batteryPercentage)]];
if(charging) battery.chargingState = 1; if(charging) battery.chargingState = 1;
battery.showsInlineChargingIndicator = YES; battery.showsInlineChargingIndicator = YES;

正在加载...
取消
保存