Auto height for label or textview within table view cell

Posted by Leo on Stack Overflow See other posts from Stack Overflow or by Leo
Published on 2010-06-11T12:22:46Z Indexed on 2010/06/11 12:32 UTC
Read the original article Hit count: 274

Hi Folks,

I have a problem in an iPhone application.

Application has a table view controller with custom table view cells. Each cell has a Label (please correct me if I need to use text view etc). I am getting text dynamically from a web service call and I don't know how long text gonna be.

Now problem is that I want to adjust the table view cell height based on text I receive. How can I grow Label or TextView height withinin table view cell so it can contain all the text and in effect grow table view cell height.

Does anyone know how to handle this kind of design problem?

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableviewcell