Skip to content

AlertView Position does not return when keyboard hides..  #44

@karimkawambwa

Description

@karimkawambwa

I fixed this on my side .. If anyone experieced it this is what i added in LMAlertView.m

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil];

  • (void)keyboardWillHide:(NSNotification *)notification
    {
    self.representationView.layer.anchorPoint = CGPointMake(0.5, 0.5);
    self.representationView.center = CGPointMake([[UIScreen mainScreen] bounds].size.width / 2.0, ([[UIScreen mainScreen] bounds].size.height) / 2.0);
    }

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