diff --git a/PUMenuView.podspec b/PUMenuView.podspec index 2d16160..b3fe0a9 100644 --- a/PUMenuView.podspec +++ b/PUMenuView.podspec @@ -54,7 +54,7 @@ Pod::Spec.new do |s| s.author = { "Wang Jinghan" => "phantom.there@gmail.com" } s.social_media_url = 'https://twitter.com/null09264' - + # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # # @@ -71,7 +71,7 @@ Pod::Spec.new do |s| # Supports git, hg, bzr, svn and HTTP. # - s.source = { :git => "https://github.com/null09264/PUMenuView.git", :tag => "1.0.4", :commit => "8ca73709cba853eeac5a35c1d72c531e86739533" } + s.source = { :git => "git@github.com:jbredice/PUMenuView.git", :tag => "1.0.5"} # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # diff --git a/PUMenuView/PUMenuView.m b/PUMenuView/PUMenuView.m index b2826d0..a423be3 100644 --- a/PUMenuView/PUMenuView.m +++ b/PUMenuView/PUMenuView.m @@ -149,6 +149,7 @@ - (void)show { if (self.isAnimationPresenting || !self.isHidden || !self.readyForShowing) { return; } + [self setNeedsLayout]; NSObject *delegate = self.delegate; [self performOptionSelector:@selector(menuViewWillShow:) on:delegate withObject:self]; @@ -156,6 +157,7 @@ - (void)show { [UIView animateWithDuration:self.animationBackgroundDuration animations:^(void){ self.backgroundView.alpha = 1; }]; + for (int i = 0; i < self.items.count; i++) { UIView *item = self.items[i]; @@ -168,7 +170,7 @@ - (void)show { options:UIViewAnimationOptionCurveEaseInOut animations:^(void) { item.alpha = 1; - [item layoutIfNeeded]; + [self layoutIfNeeded]; } completion:^(BOOL finished){ self.isAnimationPresenting = NO; self.isHidden = NO;