Hi All,
I have a custom UITableViewCell with two UILabels [field-value] pairs. The value label needs to be multiline. Using the heightForRowAtIndexPath and cellForRowAtIndexpath of UITableView, I am able to resize both the cell and the respective UILabel to show complete text.
The problem is that in case of multiline label the text appears slightly dipped which results in both the labels [field and value pair] as not appearing in same horizontal line. I am making use of sizeWIthFont with constraint of NSString to determine the resultant height of the text and the function returns correct height.
But resizing the value label dips the text slightly [may be due to the adjustment of its center].
How can I prevent this?
Thanks
Arnieterm
I have a custom UITableViewCell with two UILabels [field-value] pairs. The value label needs to be multiline. Using the heightForRowAtIndexPath and cellForRowAtIndexpath of UITableView, I am able to resize both the cell and the respective UILabel to show complete text.
The problem is that in case of multiline label the text appears slightly dipped which results in both the labels [field and value pair] as not appearing in same horizontal line. I am making use of sizeWIthFont with constraint of NSString to determine the resultant height of the text and the function returns correct height.
But resizing the value label dips the text slightly [may be due to the adjustment of its center].
How can I prevent this?
Thanks
Arnieterm