Sterling Lutes
Sterling Lutes

Reputation: 43

Iphone Table Cell Sizes

I'm using custom cells in my table view. I have the height of the cells set but for only the 10th cell in the table I need to resize.

Upvotes: 0

Views: 80

Answers (1)

TomSwift
TomSwift

Reputation: 39512

You need to implement the UITableViewDelegate method heightForRowAtIndexPath:

Something like this:

- (CGFloat) tableView: (UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
     if ( indexPath.row == 10 )
         return 100.0;

     return 40.0;
}

Upvotes: 1

Related Questions