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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:13:46+00:00 2026-05-28T05:13:46+00:00

I have created a static table cell in a .xib, however when it is

  • 0

I have created a static table cell in a .xib, however when it is displayed the cell height set in the xib is not being applied, instead the cell is being displayed with what looks like the default height for cells.

I have set things up as:

1) The table view controller derives from UITableViewController

2) The TVC is not contained within a xib and is created in code in the app delegate and added to a tab bar controller.

3) The TVC is created using initWithNibName:bundle: with the nib name supplied as the name of the xib containing the table view and the static table cell.

4) The TVC has an IBOutlet iVar of type UITableViewCell*

5) cellForRowAtIndexPath returns this iVar.

6) numberOfRowsInSection returns 1, numberOfSectionsInTableView returns 1;

7) The xib contains a table view, which is connected to the File’s Owner’s view. The File’s Owner is set to my custom table view controller class.

8) The UITableViewCell in the xib is connected to the outlet of type UITableViewCell in the File’s Owner.

9) THe Table view style in the xib is set to grouped.

10) The size of the Table View Cell shown in the size inspector is N, and this is where the problem is. If I change N manually or by resizing the cell visual representation then this size is not applied when the table is drawn. I have also tried setting the view Frame Rectangle height in the size inspector to match.
It doesn’t matter what value N is, big or small.

11) The cell’s height is not being set anywhere in the TVC, if I do set it using self.tableView.rowHeight then its height does change. But I do not want to set it explicitly like this, I want the height size in the xib to be picked up.

This has been driving me nuts for a few days, and reading several tutorials on table views (including Apple’s table view programming guide, especially the section on static cells, whose instructions I followed in the first place to set everything up) has not given me any clues where the problem lies.

TIA

  • 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-05-28T05:13:47+00:00Added an answer on May 28, 2026 at 5:13 am

    Implement heightForRowAtIndexPath and return the height of the UITableViewCell linked to in your IBOutlet.

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

Sidebar

Related Questions

I have an iPad app that is not showing a table created programmatically. Where
I have created a table where in a cell of each row a combo
I have created a static library following this link . But I am facing
I have created a public static class utils.cs I want to use it in
I have created my own Attached Property like this: public static class LabelExtension {
I have created a minidump using win32 api [DllImport(DbgHelp.dll, SetLastError = true)] private static
I have a static library *.lib created using MSVC on windows. The size of
I've created a website with ASP.NET MVC. I have a number of static pages
i have a datatable i created below i need to list all rows' cell
I have a dynamically created table and in some of the cells i have

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.