4

We have an app with a burger menu navigation, the menu itself is a window that lies behind the keywindow.

When the user long presses a uitextfield and brings up the magnifying glass, the magnifying glass shows the content of the UIWindow behind.

Has anyone got any ideas

Video

View hierarchy

4 Answers4

4

A workaround for this is setting windowLevel to -1 like

self.navigationWindow.windowLevel = -1;

where navigationWindow is the window containing the menu.

0

I meet the same problems. My solution is:
UIWindow* oldWindow = [UIApplication sharedApplication].keyWindow; delegate.newWindow.hidden = NO; [delegate.newWindow makeKeyAndVisible]; oldWindow.hidden = YES;

it works. But there will be a black twinkle during the transition.

Larry
  • 101
  • 1
  • 3
0

Set window?.makeKeyAndVisible() After window?.rootViewController = whatever

Issue happens with me when I do the opposite

Faisal
  • 857
  • 2
  • 10
  • 21
0

Actually your application UIWindow::windowLevel property (window z-index) is 0 by default. Your login UIWindow::windowLevel is also 0 by default.

Adjust your login window level

loginWindow.windowLevel = UIWindowLevelAlert
Segabond
  • 1,083
  • 12
  • 15