Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pikacode committed Jul 27, 2016
1 parent f49634e commit c9a80e7
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion EBForeNotification.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

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

# This description is used to generate tags and improve search results.
Expand Down
6 changes: 6 additions & 0 deletions EBForeNotification/EBBannerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ -(void)apperWithAnimation{
-(void)removeWithAnimation{
//anitamtion
[UIView animateWithDuration:BannerAnimationTime animations:^{
for (UIView *view in self.subviews) {
CGRect frame = view.frame;
[view removeConstraints:view.constraints];
view.frame = frame;
}
[self removeConstraints:self.constraints];
self.frame = CGRectMake(0, 0, BannerWidth, 0);
} completion:^(BOOL finished) {
self.frame = CGRectMake(0, 0, BannerWidth, 0);
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ -(void)apperWithAnimation{
-(void)removeWithAnimation{
//anitamtion
[UIView animateWithDuration:BannerAnimationTime animations:^{
for (UIView *view in self.subviews) {
CGRect frame = view.frame;
[view removeConstraints:view.constraints];
view.frame = frame;
}
[self removeConstraints:self.constraints];
self.frame = CGRectMake(0, 0, BannerWidth, 0);
} completion:^(BOOL finished) {
self.frame = CGRectMake(0, 0, BannerWidth, 0);
Expand Down

0 comments on commit c9a80e7

Please sign in to comment.