Skip to content

Commit

Permalink
Fix #114
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed May 1, 2017
1 parent 53e0c37 commit 44e05be
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 3 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions Source/AMPopTip.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ - (void)commonInit {
_arrowSize = kDefaultArrowSize;
_animationIn = kDefaultAnimationIn;
_animationOut = kDefaultAnimationOut;
_isVisible = NO;
_shouldDismissOnTapOutside = YES;
_edgeMargin = kDefaultEdgeMargin;
_edgeInsets = kDefaultEdgeInsets;
Expand All @@ -112,6 +111,10 @@ - (void)commonInit {
_swipeRemoveGesture = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipeRemoveGestureHandler)];
}

- (BOOL)isVisible {
return self.superview != nil;
}

- (void)layoutSubviews {
[super layoutSubviews];
}
Expand Down Expand Up @@ -361,7 +364,6 @@ - (void)show {
if (self.actionAnimation != AMPopTipActionAnimationNone) {
[self startActionAnimation];
}
self.isVisible = YES;
self.isAnimating = NO;
}];
}
Expand Down Expand Up @@ -474,7 +476,6 @@ - (void)hideForced:(BOOL)forced {
[self removeFromSuperview];
[self.layer removeAllAnimations];
self.transform = CGAffineTransformIdentity;
self->_isVisible = NO;
self->_isAnimating = NO;
if (self.dismissHandler) {
self.dismissHandler();
Expand Down

0 comments on commit 44e05be

Please sign in to comment.