UITableView loading before variables being set

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-04-13T19:09:56Z Indexed on 2010/04/13 19:13 UTC
Read the original article Hit count: 225

I have a label on a UITableView. When clicked it will refresh my tableview and set the top cell's height. When I am setting the cell height, I am checking if a certain variable is TRUE. If true it will show the large height, if false, the smaller height.

At the time of cell height creation, my variable is always false. It is a member variable and its value is being set when the user clicks on the label.

How can I make sure that the variable is set before the table refreshes?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk