Skip to content

TSAlertView makeKeyAndVisible executing multiple times #12

Description

@sean808080

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions