From 75819ee95ed411a84cf9df77c7a2445630712083 Mon Sep 17 00:00:00 2001 From: "eddyverbruggen@gmail.com" Date: Wed, 22 Apr 2015 20:37:30 +0200 Subject: [PATCH] Toasts are now show on top of an InAppBrowser window (iOS). --- plugin.xml | 2 +- src/ios/Toast+UIView.m | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/plugin.xml b/plugin.xml index b4bf9c4..ab1c057 100755 --- a/plugin.xml +++ b/plugin.xml @@ -2,7 +2,7 @@ + version="2.0.5"> Toast diff --git a/src/ios/Toast+UIView.m b/src/ios/Toast+UIView.m index 1c3c76a..047733b 100644 --- a/src/ios/Toast+UIView.m +++ b/src/ios/Toast+UIView.m @@ -70,7 +70,7 @@ static UIView *prevToast = NULL; - (void)makeToast:(NSString *)message duration:(NSTimeInterval)duration position:(id)position { UIView *toast = [self viewForMessage:message title:nil image:nil]; - [self showToast:toast duration:duration position:position]; + [self showToast:toast duration:duration position:position]; } - (void)makeToast:(NSString *)message duration:(NSTimeInterval)duration position:(id)position title:(NSString *)title { @@ -106,8 +106,9 @@ static UIView *prevToast = NULL; toast.userInteractionEnabled = YES; toast.exclusiveTouch = YES; } - - [self addSubview:toast]; + + // make sure that if InAppBrowser is active, we're still showing Toasts on top of it + [self.superview.superview addSubview:toast]; [UIView animateWithDuration:CSToastFadeDuration delay:0.0