views:

346

answers:

2

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.

A: 

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;
}
Cannonade
I can change this in the code, but I have a problem with resizing of the actual view in IB :(((
Ondrej
So you are not able to resize the window containing the UITableViewCell in IB? Not quite clear on what is happening for you.
Cannonade
Yeah, that was the problem ... but it is fine with 3.2 non beta release ...
Ondrej
A: 

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.

Justin
The solution was to wait for the first non-beta release of iPhone 3.2 SDK :) ...
Ondrej