1
0
镜像自地址 https://github.com/Burrit0z/kai 已同步 2026-05-28 17:02:57 +00:00

complications stuff

这个提交包含在:
Burrit0z
2020-05-27 08:28:25 -04:00
父节点 b3297545bf
当前提交 7c1ef78fdc
共有 2 个文件被更改,包括 14 次插入1 次删除

查看文件

@ -125,7 +125,9 @@ long long lastPercentage;
}
}];
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame];
}
});
}
@ -133,6 +135,9 @@ long long lastPercentage;
-(void)addArrangedSubview:(UIView *)view {
[super addArrangedSubview:view];
self.number = [self.subviews count];
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame];
}
[UIView animateWithDuration:0.3 animations:^{
@ -173,6 +178,9 @@ long long lastPercentage;
-(void)removeArrangedSubview:(UIView *)view {
[super removeArrangedSubview:view];
self.number = [self.subviews count];
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) {
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame];
}
[UIView animateWithDuration:0.3 animations:^{

5
Kai.h
查看文件

@ -30,6 +30,11 @@
-(id)sf_udidString;
-(id)_currentProduct;
@end
@interface NCNotificationListView : UIView
-(void)fixComplicationsViewFrame;
@end
BOOL isUpdating = NO;
//prefs