Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call default implementation of heightForRowAtIndexPath?

Tags:

iphone

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?

like image 818
Pablo Avatar asked Jun 30 '10 12:06

Pablo


2 Answers

You can just return tableView.rowHeight, which is set to a default value unless you change it.

like image 106
Ole Begemann Avatar answered Nov 20 '22 13:11

Ole Begemann


Return the constant UITableViewAutomaticDimension.

Available since iOS 5.0, documented here.

like image 8
skagedal Avatar answered Nov 20 '22 12:11

skagedal