In my heightForRowAtIndexPath
method I want to customize height only for certain rows. For the rest I want the framework to take care. How would I do that?
You can just return tableView.rowHeight
, which is set to a default value unless you change it.
Return the constant UITableViewAutomaticDimension
.
Available since iOS 5.0, documented here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With