I have a tableview and I set autolayout to the cells, so one cell's height might be 50, another ones might be 120. I need to show max 2 cells, so if count > 2, then cell count = 2, else it equals to the cells count.
My problem is resizing UITableView height according to the each cell size. How can I properly set UITableView height constraint value?
I hope I could explain what I want, if you have any question, please ask me