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

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

Open
karimkawambwa opened this issue May 20, 2014 · 0 comments
Open

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

karimkawambwa opened this issue May 20, 2014 · 0 comments

Comments

@karimkawambwa
Copy link

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);
    }
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