Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS- How do I make each cell in a table view bigger?

This might be a noob question,but how do I make each cell in a UItableview bigger through interface builder?

like image 645
Food Mood Avatar asked Dec 06 '25 14:12

Food Mood


1 Answers

Select the table view in your nib or storyboard. Then show the Size Inspector. (You can do this by choosing View > Utilities > Show Size Inspector… from the menu bar, among other ways.) The first section of the Size Inspector is the Table View Size, and the first field in the Table View Size section is the Row Height.

Row Height screen shot

Changing the Row Height field in the nib has the same effect as setting the rowHeight property of the table view instance at runtime.

If you want rows to be different heights, you must either implement tableView:heightForRowAtIndexPath: in your table view's delegate, or use a storyboard with static cells.

like image 122
rob mayoff Avatar answered Dec 09 '25 16:12

rob mayoff