Is there a way to change the height of a UITableView from a custom UITableViewCell class?

I am trying to make an application like Instagram and I am stuck on the feed screen.

I made the comment part as a UITableView. Therefore, I have a UITableView in a user class of UITableView cells. This is normal.

My question is: how can I change the presentation height of the main feed table from my table table cell class?

The height of the comments table of the table of tables is dynamically changed in accordance with the text (length) inside it. A dynamic variable is the height of the presentation of the comment table that I plan to use.

Note. I can’t use any code because it is a confidential project for our company.

Greetings

enter image description here

+4
2

Autolayout UITableViewCell UITableView. fooobar.com/questions/1017/..., .

+2

tableView heightForRowAtIndexPath, tableViewCell

– (CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;

boundingRectWithSize, viewview delagate.

- (CGRect)boundingRectWithSize:(CGSize)size options:(NSStringDrawingOptions)options context:(NSStringDrawingContext *)context
0

Source: https://habr.com/ru/post/1532213/


All Articles