浏览代码

ALMOST

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

+ 6
- 2
Kai.xm 查看文件

@@ -51,7 +51,7 @@ CGRect originalBattery;
battery.translatesAutoresizingMaskIntoConstraints = NO;
//[battery.widthAnchor constraintEqualToAnchor:[self stackView].widthAnchor].active = YES;
//[battery.heightAnchor constraintEqualToConstant:(battery.number * 85)].active = YES;
[battery.heightAnchor constraintEqualToConstant:100].active = YES;
//[battery.heightAnchor constraintEqualToConstant:100].active = YES;
originalBattery = battery.frame;
original = [self stackView].frame;
[[NSNotificationCenter defaultCenter] addObserver:self
@@ -89,7 +89,11 @@ CGRect originalBattery;

battery.translatesAutoresizingMaskIntoConstraints = NO;
//[battery.widthAnchor constraintEqualToAnchor:[self stackView].widthAnchor].active = YES;
//[battery.heightAnchor constraintEqualToConstant:(battery.number * 85)].active = YES;
[[self stackView] removeArrangedSubview:battery];
int height = (battery.number * 85);
[battery.heightAnchor constraintEqualToConstant:height].active = YES;
[[self stackView] addArrangedSubview:battery];
}

%new

正在加载...
取消
保存