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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:40:53+00:00 2026-06-07T06:40:53+00:00

I have a UITableViewController with a grouped static UITableView. I am defining the cells

  • 0

I have a UITableViewController with a grouped static UITableView. I am defining the cells for my static table view on the storyboard. One of the cells has a textfield in it. When this textfield is called, the keyboard pops up, however, the tableview is not automatically resizing like it normally would on a table view controller. So now the keyboard is partially covering the textfield and I can’t scroll up.

My understanding is that when you are using a UITableViewController and a tableview, the viewable area should automatically shrink when the keyboard is called. It does work as intended in other parts of my app, just not with this static table view. Does it not work with static tables? Is there something else I am missing? Is there an easy way to solve this?

Thanks

  • 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-07T06:40:55+00:00Added an answer on June 7, 2026 at 6:40 am

    Answer

    It has nothing to do with static cells. They should work.

    If your controller is already a UITableViewController, check if you used the method viewWillAppear. If you did, you have to call [super viewWillAppear:YES] to get the ‘automatic behavior’ to work.

    -(void)viewWillAppear:(BOOL)animated {
        [super viewWillAppear:YES]; // This line is needed for the 'auto slide up'
       // Do other stuff
    }
    

    This problem turns up easily because the boilerplate code for the controllers don’t come with the viewWillAppear method call and if you define it in your controller, you override it.

    Extra Information

    Look at this link.

    Apple Table View Programming Guide

    Note: UITableViewController has new capabilities in iOS 3.0. A
    table-view controller supports inline editing of table-view rows; if,
    for example, rows have embedded text fields in editing mode, it
    scrolls the row being edited above the virtual keyboard that is
    displayed…. blah….

    The important bit

    The UITableViewController class implements the foregoing behavior by
    overriding loadView, viewWillAppear:, and other methods inherited from
    UIViewController. In your subclass of UITableViewController, you may
    also override these methods to acquire specialized behavior. If you do
    override these methods, be sure to invoke the superclass
    implementation of the method, usually as the first method call, to get
    the default behavior.

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

Sidebar

Related Questions

I have a UITableViewController, which is RootViewController. It's XIB only has a table view.
I have a UITableViewController subclass with its prototype cells mocked up in the storyboard.
On iOS 5 I Have a UITableViewController set to Static Cells. I only need
I have a regular UITableViewController and a UITableView as its only view, and I
I have a Nib file containing grouped table view and a cell. The cell
Hello I have a trouble customizing a background of the grouped table view.. Here's
I have an UITableViewController to manage an table view which created with subclassed prototype
I have a grouped UITableViewController with one section and many rows. Each cell consists
I have a UITableViewController that has a UISearchbar in its header view. When the
I simply want to have a static table View with items in it. I

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.