|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}]; |
|
|
}]; |
|
|
|
|
|
|
|
|
|
|
|
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) { |
|
|
|
|
|
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame]; |
|
|
|
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
-(void)addArrangedSubview:(UIView *)view { |
|
|
-(void)addArrangedSubview:(UIView *)view { |
|
|
[super addArrangedSubview:view]; |
|
|
[super addArrangedSubview:view]; |
|
|
self.number = [self.subviews count]; |
|
|
self.number = [self.subviews count]; |
|
|
|
|
|
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) { |
|
|
|
|
|
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
[UIView animateWithDuration:0.3 animations:^{ |
|
|
[UIView animateWithDuration:0.3 animations:^{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-(void)removeArrangedSubview:(UIView *)view { |
|
|
-(void)removeArrangedSubview:(UIView *)view { |
|
|
[super removeArrangedSubview:view]; |
|
|
[super removeArrangedSubview:view]; |
|
|
self.number = [self.subviews count]; |
|
|
self.number = [self.subviews count]; |
|
|
|
|
|
if([self.superview.superview.superview respondsToSelector:@selector(fixComplicationsViewFrame)]) { |
|
|
|
|
|
[(NCNotificationListView *)(self.superview.superview.superview) fixComplicationsViewFrame]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
[UIView animateWithDuration:0.3 animations:^{ |
|
|
[UIView animateWithDuration:0.3 animations:^{ |
|
|
|
|
|
|