Is it possible to overlay an image on top of the entire iOS app?
I would like to have a PNG image with spotlights on top of my entire application. Even when the keyboard pops up.
Is it possible?
+3
dot
source
to share
1 answer
Add the PNG to a new window that overlays everything else:
UIWindow *totalOverlayWindow = [[UIWindow alloc] init];
totalOverlayWindow.frame = [[UIScreen mainScreen] bounds];
totalOverlayWindow.userInteractionEnabled = NO;
totalOverlayWindow.windowLevel = UIWindowLevelStatusBar + 1;
[totalOverlayWindow makeKeyAndVisible];
This window will now be above everything else.
+6
Daniel Amitay
source
to share