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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:23:19+00:00 2026-06-07T18:23:19+00:00

I have a custom table cell which has a custom ui view in it.

  • 0

I have a custom table cell which has a custom ui view in it. My cell height is dynamic as it depends on the data coming from the server. Once I have data, I resize the cell frame so that it will be visible in the table.

But when I resize the cell frame by modifying the height of the cell, the cell contents never resize properly. I have set the inner views resizing masks properly, but not sure when I change the cell height in the table view’s heightForRowIndexPath delegate method by modifying the cell frame, the inner views doesn’t resize.

The work around solution I found here is, once I set new frame for cell, I set the same frame for inner container view which does resizing of all subviews.

I just need to know what might be the issue in cell resize.

Thanks in Advance

Thanks,
Naveen

  • 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-07T18:23:21+00:00Added an answer on June 7, 2026 at 6:23 pm

    There is a property on all views, autoresizesSubviews, which would enable automatic resizing. That said, what it would imply for UITableView cell is that its subviews would get resized. However, the “contentView” property of a UITableViewCell is NOT a subview, its a view that is managed by the cell. While it would seem logical that frame changes to the cell would be propagated to the contentView, they are not. I just modified a tableView project of my own to verify that autoresizesSubviews was set on both the cell and the contentView, and that cell frame changes had no effect on the contentView.

    In my experience the frame height has no affect on how cells are displayed, since both the backgroundView (if there) and the contentView are “managed” not subviews. You cannot even use it for heightForRowAtIndexPath: since that call back gets called before the cell is even created (and trying to get and use it within that method causes a crash in my app).

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

Sidebar

Related Questions

I need to create a table with custom cell's, which have different size (Height).
I have a table cell with a custom backgroundView which looks great while in
I have a table view with a custom cell ( UISwitch on every cell
I have a custom table that has a custom format to it, which makes
I have a custom table created which has a foreign constraint on the core_website
I have a table cell for which I set its contentView to a custom
I have a custom view in a custom table cell. Every time a specific
I am making a custom table view which has content 'Static Cells' and style
I have a table view of custom cells representing individual uploads and each cell
I have a UITapGestureRecognizer in a custom table cell which is intended to do

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.