Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. //WHEN FACEUP -> Wrong Values
  2. Keyboard will show: {
  3. UIKeyboardAnimationCurveUserInfoKey = 7;
  4. UIKeyboardAnimationDurationUserInfoKey = "0.25";
  5. UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {320, 0}}";
  6. UIKeyboardCenterBeginUserInfoKey = "NSPoint: {160, 568}";
  7. UIKeyboardCenterEndUserInfoKey = "NSPoint: {160, 568}";
  8. UIKeyboardFrameBeginUserInfoKey = "NSRect: {{inf, inf}, {0, 0}}";
  9. UIKeyboardFrameChangedByUserInteraction = 0;
  10. UIKeyboardFrameEndUserInfoKey = "NSRect: {{inf, inf}, {0, 0}}";
  11. }
  12.  
  13. //WHEN PORTRAIR -> good values
  14. Keyboard will show: {
  15. UIKeyboardAnimationCurveUserInfoKey = 7;
  16. UIKeyboardAnimationDurationUserInfoKey = "0.25";
  17. UIKeyboardBoundsUserInfoKey = "NSRect: {{0, 0}, {320, 216}}";
  18. UIKeyboardCenterBeginUserInfoKey = "NSPoint: {160, 676}";
  19. UIKeyboardCenterEndUserInfoKey = "NSPoint: {160, 460}";
  20. UIKeyboardFrameBeginUserInfoKey = "NSRect: {{0, 568}, {320, 216}}";
  21. UIKeyboardFrameChangedByUserInteraction = 0;
  22. UIKeyboardFrameEndUserInfoKey = "NSRect: {{0, 352}, {320, 216}}";
  23. }
  24.  
  25. objc_msgSend([UIDevice currentDevice], @selector(setOrientation:), UIInterfaceOrientationPortrait );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement