ソースを参照

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

読み込み中…
キャンセル
保存