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

changeOrientationForIOS8 has bug #82

Open
raymanound-zz opened this issue Aug 20, 2015 · 1 comment
Open

changeOrientationForIOS8 has bug #82

raymanound-zz opened this issue Aug 20, 2015 · 1 comment

Comments

@raymanound-zz
Copy link

The direction of my application is forced to be portrait and I put a textfield in the alertview contentview. When the keyboard is showing, the alertview will still reposition to the center of screen while I move the phone. The iphone I test is iphone5 with ios8.4.

@pabloburnio
Copy link

Believe that I have the same issue, this happens regardless of orientation but is more pronounced in landscape (less space for keyboard and popup).

Hold your device vertically (like your monitor is), then tilt the screen back slowly so it starts to face the ceiling. The alertview will move down the screen behind the keyboard.

Issue is with 'changeOrientationForIOS8', on this line;

CGSize keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue].size;

keyboardSize is always nil as it doesn't receive notifications for this key.

Just about to create a pull request for this as I've made the changes. Also, swapped out

UIKeyboardFrameBeginUserInfoKey for UIKeyboardFrameEndUserInfoKey, as that represents the final size of they keyboard.

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

2 participants