Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent window, UIAlertViews, UIActionSheets and the keyboard #164

Closed
rolandleth opened this issue Oct 26, 2016 · 0 comments
Closed

Parent window, UIAlertViews, UIActionSheets and the keyboard #164

rolandleth opened this issue Oct 26, 2016 · 0 comments

Comments

@rolandleth
Copy link
Owner

rolandleth commented Oct 26, 2016

The issue (#16) started with a positioning problem, which is now fixed, but it revealed another kinda hard to fix problem - displaying the lockscreen when an alertView / actionSheet is visible, or displaying one after the lockscreen is visible results in a few cases:

  • the lockscreen and the keyboard appear on top the av/as, but
    • the dimming of the av/as appears on top the lockscreen;
    • if the app is closed and reopened, the order becomes av/as - lockscreen - dimming - keyboard.
  • the lockscreen always appears behind the av/as, while the keyboard
    • doesn't appear until the av/as is dismissed;
    • appears on top on the av/as - if the app is closed and reopened with the av/as visible.
  • the lockscreen appears above the av/as, while the keyboard appears below, so there's no way to enter the passcode.

The current implementation shows the lockscreen behind the av/as.

Related StackOverflow question: https://stackoverflow.com/questions/19816142/uialertviews-uiactionsheets-and-keywindow-problems. I tried creating a new window, but either it doesn't work, or I simply didn't manage to do it properly.

Any help would be greatly appreciated.

rolandleth pushed a commit that referenced this issue Oct 26, 2016
Replaced all instances of `keyWindow` with `LTHMainWindow` (macro that expands `[UIApplication sharedApplication].windows[0]` - explanation in #164
rolandleth pushed a commit that referenced this issue Oct 26, 2016
Replaced all instances of `keyWindow` with `LTHMainWindow` (macro that expands `[UIApplication sharedApplication].windows[0]` - explanation in #164
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant