Skip to content

Commit

Permalink
Show above keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
daninfpj committed Jul 7, 2016
1 parent 0660d03 commit fbd4f39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SZEasyTipView/Classes/SZEasyTipView.m
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ - (void)showForView:(UIView *)view withinSuperView:(UIView *)superView animated:
NSAssert(superView == nil || [view hasSuperView:superView], @"The supplied superview %@ is not a direct nor an indirect superview of the supplied reference view %@. The superview passed to this method should be a direct or an indirect superview of the reference view. To display the tooltip within the main window, ignore the superview parameter.", superView, view);

if (!superView) {
superView = [UIApplication sharedApplication].windows.firstObject;
superView = [UIApplication sharedApplication].windows.lastObject;
}

CGAffineTransform initialTransform = _config.showInitialTransform;
Expand All @@ -206,6 +206,7 @@ - (void)showForView:(UIView *)view withinSuperView:(UIView *)superView animated:
[self addGestureRecognizer:tap];

[superView addSubview:self];
[superView bringSubviewToFront:self];

// animation
void(^animatin)(void) = ^{
Expand Down

0 comments on commit fbd4f39

Please sign in to comment.