How to vertically center detail text in a table cell of UITableViewCellStyleValue2 style?
When I do
cell.textLabel.numberOfLines = 2; cell.detailTextLabel.numberOfLines = 1;
on a cell of UITableViewCellStyleValue2 style, the line of detail text is top-aligned, i.e. roughly at the same vertical position as the first line of (main) text is. However, I want it to be in the vertical center of the cell. Setting cell.detailTextLabel.baselineAdjustment to various values did not help. Can anyone help?
Create the custom cell with these two label and set detailtextLabel(custom) frame as your want.