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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:39:48+00:00 2026-05-13T23:39:48+00:00

I have a UITableViewController. In viewDidLoad I set the rowHeight: self.tableView.rowHeight = 43; But

  • 0

I have a UITableViewController. In viewDidLoad I set the rowHeight:

self.tableView.rowHeight = 43;

But then in cellForRowAtIndexPath, I check the height of the cell:

NSLog(@"bounds: w = %f, h = %f", cell.bounds.size.width, cell.bounds.size.height);

This prints a height of 44 and a width of 320. Anyone know why it would print a height of 44 instead of 43?

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-05-13T23:39:48+00:00Added an answer on May 13, 2026 at 11:39 pm

    Simply put, the two things are independent of each other.

    When you set rowHeight in your UITableView object, you are telling it how to render the table. The default value for rowHeight is 44.

    When you create a UITableViewCell object, as a subclass of UIView, it has its own default frame and bounds, which includes a height (and width). The default value for height also just happens to be equal 44.

    Your confusion arises because you have created a UITableViewCell object and you expected it to have a height equal to the (not default) rowHeight property in your UITableView object. How can it? It just came into existence!

    Like all UIViews, until something comes along and explicitly changes its height, its height won’t change.

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

Sidebar

Ask A Question

Stats

  • Questions 491k
  • Answers 491k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The method android uses to create the tween animation is… May 16, 2026 at 10:04 am
  • Editorial Team
    Editorial Team added an answer To do exactly what you want you need Late Static… May 16, 2026 at 10:04 am
  • Editorial Team
    Editorial Team added an answer I suspect that the problem may be that the libraries… May 16, 2026 at 10:04 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a UITableViewController subclass. I set self.editing = YES at the end of
I have a UITableViewController that I have specified as a UISearchBarDelegate. Up until now,
I have two NSMutableString objects defined in my viewController's (a subclass of UITableViewController) .h
I have an Exec SQL Task that runs a simple select statement but is
I have a nib that contains two TableViews. The table views are of the
I have a UIViewController (called AdjustViewController ) that presents another UIViewController (called SourcePickerViewController )
I have been all over the place, seems the UITableView with a static background
I've got the code below in my RootViewController (which is a UITableViewController). This code
In my app, I use a label to display a specified color by set
In my iPhone app I have a UIViewController that has a UITableView and another

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.