I am basically trying to find the right way to create a UITableViewCell with two UITextViews and three UILabels inside it. Two UITextViews have dynamic content, and their size cannot be determined until runtime.
I tried various methods for recalculating the height of my UITextViews based on the content that loads into them at runtime, and although it is very time-consuming and crazy, I got it to work, but then they bleed for UILabels located in xib below them.
Do I really need to recalculate the y-coordinates of each UILabel after calculating the new size of the UITextViews? Is there a way to simply have elements in xib "push" the elements below them down depending on their new size?
What is the right approach to setting up a UITableViewCell with multiple dynamic text views so that my entire application does not consist of code for calculating heights and coordinates?
Or is it the answer that I should not put more than one dynamic UITextView in the same UITableViewCell?
source
share