Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView with different row heights for different sections

I am using custom cells for different sections within my tableview. I know that I can adjust the height of the roows of my table in Interface Builder. but how do I control the height of my tableview's rows if I have 3 sections each with a different row height?

Many thanks

like image 742
banditKing Avatar asked Nov 29 '22 04:11

banditKing


1 Answers

Implement tableView:heightForRowAtIndexPath: in your UITableViewDelegate (which is most likely your table-view's controller).

like image 126
Marcelo Cantos Avatar answered Dec 09 '22 15:12

Marcelo Cantos