Custom UITableViewCell - adjust UILabel vertical alignment dynamically
Custom UITableViewCell - adjust UILabel vertical alignment dynamically I have a custom table cell. It has two labels ( title and description ), one below the other. title description What I have right now is, title label top = topMargin . And description label top = title label bottom + 10 . title top = topMargin description top = title bottom + 10 But in some cases, there will be no description. In such cases, I want the title label to be centered vertically inside the cell. Is this possible? What constraints do I have to set? title Are your labels single-line only, and the rows are fixed-height? Or are the labels multi-line, so the row heights need to be dynamic? – DonMag yesterday Edited my answer. – Rakesha Shastri yesterday ...