Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //WHEN FACEUP -> Wrong Values
- Keyboard will show: {
- UIKeyboardAnimationCurveUserInfoKey = 7;
- UIKeyboardAnimationDurationUserInfoKey = "0.25";
- UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {320, 0}}";
- UIKeyboardCenterBeginUserInfoKey = "NSPoint: {160, 568}";
- UIKeyboardCenterEndUserInfoKey = "NSPoint: {160, 568}";
- UIKeyboardFrameBeginUserInfoKey = "NSRect: {{inf, inf}, {0, 0}}";
- UIKeyboardFrameChangedByUserInteraction = 0;
- UIKeyboardFrameEndUserInfoKey = "NSRect: {{inf, inf}, {0, 0}}";
- }
- //WHEN PORTRAIR -> good values
- Keyboard will show: {
- UIKeyboardAnimationCurveUserInfoKey = 7;
- UIKeyboardAnimationDurationUserInfoKey = "0.25";
- UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {320, 216}}";
- UIKeyboardCenterBeginUserInfoKey = "NSPoint: {160, 676}";
- UIKeyboardCenterEndUserInfoKey = "NSPoint: {160, 460}";
- UIKeyboardFrameBeginUserInfoKey = "NSRect: {{0, 568}, {320, 216}}";
- UIKeyboardFrameChangedByUserInteraction = 0;
- UIKeyboardFrameEndUserInfoKey = "NSRect: {{0, 352}, {320, 216}}";
- }
- objc_msgSend([UIDevice currentDevice], @selector(setOrientation:), UIInterfaceOrientationPortrait );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement