Skip to content

TSAlertView makeKeyAndVisible executing multiple times #12

@sean808080

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.

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