Skip to content

Commit c9a80e7

Browse files
committed
update
1 parent f49634e commit c9a80e7

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

EBForeNotification.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "EBForeNotification"
19-
s.version = "1.1.0"
19+
s.version = "1.0.2"
2020
s.summary = "iOS 前台推送及事件处理。iOS Foreground Push Notification and event-handle."
2121

2222
# This description is used to generate tags and improve search results.

EBForeNotification/EBBannerView.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ -(void)apperWithAnimation{
101101
-(void)removeWithAnimation{
102102
//anitamtion
103103
[UIView animateWithDuration:BannerAnimationTime animations:^{
104+
for (UIView *view in self.subviews) {
105+
CGRect frame = view.frame;
106+
[view removeConstraints:view.constraints];
107+
view.frame = frame;
108+
}
109+
[self removeConstraints:self.constraints];
104110
self.frame = CGRectMake(0, 0, BannerWidth, 0);
105111
} completion:^(BOOL finished) {
106112
self.frame = CGRectMake(0, 0, BannerWidth, 0);

demo/iOS-Foreground-Push-Notification/iOS-Foreground-Push-Notification/EBBannerView.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ -(void)apperWithAnimation{
101101
-(void)removeWithAnimation{
102102
//anitamtion
103103
[UIView animateWithDuration:BannerAnimationTime animations:^{
104+
for (UIView *view in self.subviews) {
105+
CGRect frame = view.frame;
106+
[view removeConstraints:view.constraints];
107+
view.frame = frame;
108+
}
109+
[self removeConstraints:self.constraints];
104110
self.frame = CGRectMake(0, 0, BannerWidth, 0);
105111
} completion:^(BOOL finished) {
106112
self.frame = CGRectMake(0, 0, BannerWidth, 0);

0 commit comments

Comments
 (0)