From 67b75916188cd15398fb6fe1bf4e5f0d98ca4f8d Mon Sep 17 00:00:00 2001 From: Jason Bredice Date: Wed, 25 May 2016 13:21:15 -0700 Subject: [PATCH 1/2] update commit number to match podspec --- PUMenuView.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PUMenuView.podspec b/PUMenuView.podspec index 2d16160..c7fef2e 100644 --- a/PUMenuView.podspec +++ b/PUMenuView.podspec @@ -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 => "https://github.com/null09264/PUMenuView.git", :tag => "1.0.4", :commit => "6823142400f43e3a29e90c567921ba5f913715c4" } # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # From d592afc9c158fde8a8821507527240d504ef7ce5 Mon Sep 17 00:00:00 2001 From: Avery Bloom Date: Wed, 9 Nov 2016 17:15:43 -0800 Subject: [PATCH 2/2] adding setNeedsLayout to work with ios > 10 updating podspec switching podspec to tag --- PUMenuView.podspec | 4 ++-- PUMenuView/PUMenuView.m | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PUMenuView.podspec b/PUMenuView.podspec index c7fef2e..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 => "6823142400f43e3a29e90c567921ba5f913715c4" } + 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;