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 8743391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:40:04+00:00 2026-06-13T11:40:04+00:00

In my app, I have a navigation bar, a tab bar, a search bar

  • 0

In my app, I have a navigation bar, a tab bar, a search bar and I always show the keypad.

However, with the different screen height with the iphone 5, I need to adjust the height of my table.

I can’t anchor the table to the top of the keypad as this is shown a run time.

So I’m trying to do this dynamically, it looks like I’m missing the search bar, just too short, hmmm.

Perhaps there’s an easier more obvious way?

EDIT: My code so far.

-(void)keyboardWillShow:(NSNotification*)aNotification {

int th = self.view.frame.size.height;

NSDictionary *info = [aNotification userInfo];
CGSize kbSize = [[info objectForKey:UIKeyboardFrameEndUserInfoKey] 
      CGRectValue].size;

int tableTop;
int tableHeight;

tableTop = table.frame.origin.y;

tableHeight = (th - tableTop) - kbSize.height;

[table setFrame:[General setTableBoundsByHeight:tableHeight:table]];

}

+ (CGRect)setTableBoundsByHeight:(int)lHeight:(UITableView*)tbl {

    CGRect tableFrame = tbl.frame;

    return CGRectMake(tableFrame.origin.x,
                                   tableFrame.origin.y,
                                   tableFrame.size.width,
                                    lHeight);
}
  • 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-13T11:40:04+00:00Added an answer on June 13, 2026 at 11:40 am

    I am guessing your “tableView” is part of your “self.view”. If it is, it is in a different coordinate system.

    The keyboard is added to the window, and tableView is on your view hierarchy. You will need to use the functions described here under the heading: Converting Between View Coordinate Systems

    EDIT: If you read the documentation on UIKeyboardFrameEndUserInfoKey, you will see it mentions the rectangle is in screen coordinates, while your UITableView is almost certainly in some other views coordinate system. In the same documentation they mentioned the function to convert between the two.

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

Sidebar

Related Questions

I have an app, which has a top navigation bar and a bottom tab
I have a tab-bar and navigation controller application (like Youtube app or Contacts app).
I have created a flexible navigation bar in my app that will show custom
I am writing an iPhone app with a tab bar and navigation bar. At
I have developed an iPhone application with tab bar and navigation controllers. It is
I have a simple Tab bar navigation app ------------------- | | | | |
I have a tab bar + navigation based app and I'd like to launch
My iPhone app is a tab bar controller loading 3 navigation controllers: for the
At the moment I have app wich have Tab bar Controller with Navigation bar
I have a tab bar based app. But from one screen the user may

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.