Quantcast
Channel: User Burhanuddin Sunelwala - Stack Overflow
Viewing all articles
Browse latest Browse all 36

Standard UITableViewCell with dynamic height

$
0
0

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 of cell.textLabel and cell.detailTextLabel to 0.

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

enter image description hereenter image description here


Viewing all articles
Browse latest Browse all 36

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>