Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8229485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T16:48:39+00:00 2026-06-07T16:48:39+00:00

On iPad, after subscribing to UIKeyboardDidShowNotification NSDictionary* info = [aNotification userInfo]; CGSize kbSize =

  • 0

On iPad, after subscribing to UIKeyboardDidShowNotification

NSDictionary* info = [aNotification userInfo];
CGSize kbSize = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
NSLog(@"%@", NSStringFromCGSize(kbSize));

prints {352, 1024}

Isn’t this wrong? Not only is height of keyboard so large, how can height be larger than width?
Or am i missing something?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T16:48:41+00:00Added an answer on June 7, 2026 at 4:48 pm

    I bet the dimensions are reported in a static orientation (the ‘window’ orientation never actually changes), so I suggest translating that to your view of interest. My normal trick is to convert it to the coordinate space of the window’s rootViewController’s view:

    CGRect rawKeyboardRect = [[info objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue];
    CGRect properlyRotatedCoords = [self.view.window convertRect:rawKeyboardRect toView:self.view.window.rootViewController.view];
    

    Or a more appropriate view if you have one available. The key is that any coordinates reported in the window’s coordinate space are not rotated, even if the window’s rootVC’s view is.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that after I have deployed my ipad/iphone app into App Store, it
Iv'e been writing a webapp for iPad and other tablets and after a lot
Need to know which event triggered after text selection done in Apple iPad. It
How to set auto lock my iphone/ipad/ipod screen programmatically after some time delay?
I'm very frustrated with this problem. After one week of waiting my universal iPad
I'm experiencing slower webkit animations in UIWebView embedded apps after upgrading my iPad 2
I would like to display a dicom image in iPad using ITK framework. After
While i finished developing an in-app-purchase application, and after several testing on iPad/Iphone, every
After creating an Xcode project from the iPad master/detail storyboard template, I cannot seem
After much frustration I've finally got an application to run on an iPad without

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.