I want to know is it possible to have a standard UITableViewCell
with style UITableViewCellStyleSubtitle
having dynamic height?
If yes, then how to achieve that?
- I do not want to customize and make a new class and nib for the cell.
- I have set the
numberOfLines
property ofcell.textLabel
andcell.detailTextLabel
to0
.
Alright, if your textLabel
contains multiple line content and detailTextLabel
contains single line content, then the tableView adjusts cell height automatically. But if it is other way round then it doesn't! Is this a bug by Apple? or expected functionality?
Below are the screen shots