From bea0a4e4083f2c19b71606f76a334439b0b17b40 Mon Sep 17 00:00:00 2001 From: Jeroen Verhoest Date: Mon, 14 Mar 2016 12:32:11 +0100 Subject: [PATCH] CB-10895 Transparent Splashscreen view sometimes remains github: close#92 --- src/ios/CDVSplashScreen.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ios/CDVSplashScreen.m b/src/ios/CDVSplashScreen.m index 407fde2..1d7b955 100644 --- a/src/ios/CDVSplashScreen.m +++ b/src/ios/CDVSplashScreen.m @@ -456,7 +456,10 @@ [weakSelf hideViews]; } completion:^(BOOL finished) { - if (finished && !_destroyed) { + // Always destroy views, otherwise you could have an + // invisible splashscreen that is overlayed over your active views + // which causes that no touch events are passed + if (!_destroyed) { [weakSelf destroyViews]; // TODO: It might also be nice to have a js event happen here -jm }