Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PUMenuView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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 ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
Expand All @@ -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 ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
4 changes: 3 additions & 1 deletion PUMenuView/PUMenuView.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,15 @@ - (void)show {
if (self.isAnimationPresenting || !self.isHidden || !self.readyForShowing) {
return;
}
[self setNeedsLayout];

NSObject<PUMenuViewDelegate> *delegate = self.delegate;
[self performOptionSelector:@selector(menuViewWillShow:) on:delegate withObject:self];
self.isAnimationPresenting = YES;
[UIView animateWithDuration:self.animationBackgroundDuration animations:^(void){
self.backgroundView.alpha = 1;
}];


for (int i = 0; i < self.items.count; i++) {
UIView *item = self.items[i];
Expand All @@ -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;
Expand Down