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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:05:58+00:00 2026-05-13T13:05:58+00:00

I need to access my cell in the table from tableView:heightForRowAtIndexPath: since I want

  • 0

I need to access my cell in the table from tableView:heightForRowAtIndexPath:
since I want to use the data I have ion the custome cell for the height calculations.
The only way I have found to get my cells is to call tableView:cellForRowAtIndexPath:

The problem with that is that calling tableView:cellForRowAtIndexPath: is actually creating the cells and than doing nothing with them. when the same cell will need to be used for drawing purpose it will be created again. So for the same index the cell is created twice.

So I am wondering is there a more effective way to do it.
Thanks for the help.

  • 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-13T13:05:59+00:00Added an answer on May 13, 2026 at 1:05 pm

    You don’t have access to the cell in this method because it does not exist yet. tableView:heightForRowAtIndexPath: is called before you create the cell in tableView:cellForRowAtIndexPath:.

    But it should not matter because you should not hold model information in the cell objects. The cells are only views and you should always hold the all the data you need to construct a cell in your model.

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

Sidebar

Related Questions

I need to access the joomla user table jos_users for login checking from external
I have a UITableView showing data from a plist file. For this table view,
I need to access to the data of a html cell,but before that ,I
I have a table in MS Access, which has the following data to be
I have a problem with Custom cell on story board. I need to access
I need access to the uint64_t typedef from stdint.h in some wrapper code that
I have two different modules that need access to a single file (One will
I need to access data by executing stored procedure through linq operations. please look
I need to access RMI methods from a client front end. For different reasons,
I have a multiple contexts running in one tomcat instance each context need access

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.