I had a problem with one of my table views in my application and am wondering if anyone has encountered something like this. I have 2 labels in the tableviewcell user table - a questionLabeland answerLabel- which have the following restrictions:

On both UILabels, I have the number of lines set to 0 to make them multi-line and have added a property preferredmaxLayoutWidthfor both:
cell.questionLabel.preferredMaxLayoutWidth = cell.questionLabel.frame.width
cell.answerLabel.preferredMaxLayoutWidth = cell.answerLabel.frame.width
I also have a method viewDidLoad(), as in other StackOverflow sentences:
self.faqTableView.rowHeight = UITableViewAutomaticDimension
self.faqTableView.estimatedRowHeight = 140.00
- , 0 . , , . :

- , . , , , .