iphone - UITableViewCell variable height with multiple UILabels and IB -


OK, so I have a situation that is driving me crazy. I am loading a UITableView with a custom UITableViewCell Now there are some pairs of UILBL in this cell.

The order is:

Label 1 label 2 label 3 label 4

Now there is a certain height of label 2 label 1, label 3 and label 4 According to the size of the string their height will need to be changed. I am using the recommended method to calculate the height for each label: - Size Font: C Restricted: Touchs: Linebreaker MODED: UILineBreakModeWordWrap

Overlapping but not sure how is the status of these labels?

Or is there a better way to do this?

Thanks

Create the position of the first label, get its shape, and then Create the status of each subsequent label by the frame of the previous label

For convenience, you can put this code in a different method, to call it once, the height of that code is -tableView: heightForRowAtIndexPath: To use in the delegate method, as well as the -tableView: cellForRowAtIndexPath: the delegate method is set to L'are.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -