Does anyone have the same problem as I do? ... I've upgraded to the iPhone SDK 3.2 and I am unable to resize UITableViewCell object in my XIB file (usually I've been just resizing the view but now the cell has the same size and there is just a grey are around) ... btw, I've tried to reinstall twice including one deep reinstall.
-
http://stackoverflow.com/questions/8615862/custom-cell-row-height-setting-in-storyboard-is-not-responding – leftspin Aug 20 '13 at 22:30
-
I think my problem was originally related to something else as I believe there was nothing like storyboards when I asked it ... (possibly, never used them) – Ondrej Rafaj Aug 21 '13 at 10:35
5 Answers
Hey I had this same issue. This is old, so maybe you found a solution already, but for those who haven't...
Select the cell in IB, and bring up the size panel (by clicking to it or with command-3). Under size & position, set to frame, and edit the height box there.
Easy, huh. Don't know how we missed this.

- 9,419
- 7
- 34
- 41
The tableviewcell size can be set by dragging the cell frame in the interface builder. Then implement then tableview delegate tableView heightForRowAtIndexPath for the particular cell you want to have a different height.

- 78
- 1
I have 3.2 installed and don't have that issue. Check that you are returning the correct cell height for heightForRowAtIndexPath. So for a cell at section zero, row zero (that uses a custom UITableViewCell), use the height of the cell defined in the XIB:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
if(indexPath.section == 0 && indexPath.row == 0)
return m_customCell.frame.size.height;
else
return 44;
}

- 42,006
- 17
- 96
- 122
-
I can change this in the code, but I have a problem with resizing of the actual view in IB :((( – Ondrej Rafaj Feb 19 '10 at 03:38
-
So you are not able to resize the window containing the UITableViewCell in IB? Not quite clear on what is happening for you. – RedBlueThing Feb 19 '10 at 04:08
The accepted answer (selecting the TableCell) and using the inspector did not work for me with XCODE 5.
This worked: - In interface builder, select the TABLE VIEW (NOT the TableViewCell). - Then in inspector (Size Inspector), notice at the top "Row Height". Set that as desired. - Also notice Section Height can be set here too!
Final note, the table cell can definitely be drag/resized as well.

- 1,654
- 14
- 19
first tab (Attributes) -> subtab(Simulated User Interface Elements) -> Status Bar: set(Unspecified) . Worked for me

- 35
- 1