瀏覽代碼

progress while i play minecraft

pull/1/head
Burrit0z 4 年之前
父節點
當前提交
9cebfebeac
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. +1
    -1
      KAIBatteryStack.mm
  2. +2
    -2
      Kai.xm

+ 1
- 1
KAIBatteryStack.mm 查看文件

@@ -51,7 +51,7 @@ long long lastPercentage;
}

if(![self.subviews containsObject:cell] && shouldAdd && [devices containsObject:device]) {
//[cell setFrame:CGRectMake(0,0,self.frame.size.width, bannerHeight + spacing)];
[cell setFrame:CGRectMake(0,0,self.frame.size.width, bannerHeight + spacing)];
[self addSubview:cell];
[self addArrangedSubview:cell];
} else if([self.subviews containsObject:cell] && !shouldAdd){

+ 2
- 2
Kai.xm 查看文件

@@ -53,7 +53,7 @@

[UIView animateWithDuration:0.3 animations:^{

/*if(!battery.heightConstraint) {
if(!battery.heightConstraint) {
battery.heightConstraint.active = NO;
battery.heightConstraint = [battery.heightAnchor constraintEqualToConstant:85];
@@ -69,7 +69,7 @@
UIStackView *s = [self stackView];
s.frame = CGRectMake(s.frame.origin.x, s.frame.origin.y, s.frame.size.width, (s.frame.size.height - 1));
//literally does nothing but makes the stack view lay itself out (doesnt adjust frame because translatesAutoreszingMaskIntoConstraints = NO on stack views)
}*/
}

}];

Loading…
取消
儲存