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

TSAlertView makeKeyAndVisible executing multiple times #12

Open
sean808080 opened this issue Feb 6, 2012 · 0 comments
Open

TSAlertView makeKeyAndVisible executing multiple times #12

sean808080 opened this issue Feb 6, 2012 · 0 comments

Comments

@sean808080
Copy link

Just noticed this bug. The below routine gets called more than once when being setup. Not sure if it is getting hit every time a button is added but I fixed it by adding the conditional below.

From TSAlertView.m:

  • (void) makeKeyAndVisible
    {
    if (!self.oldKeyWindow) //added this to prevent overwriting the oldKeyWindow with the TSAlertView window
    self.oldKeyWindow = [[UIApplication sharedApplication] keyWindow];
    self.windowLevel = UIWindowLevelAlert;
    [super makeKeyAndVisible];
    }

This resolved an issue I had with a UIWebView not displaying a keyboard when an editable field was getting focus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant