Changing UITableViewCell height on a grouped cell doesn't look good
Posted
by Sheehan Alam
on Stack Overflow
See other posts from Stack Overflow
or by Sheehan Alam
Published on 2010-05-25T22:08:21Z
Indexed on
2010/05/25
22:11 UTC
Read the original article
Hit count: 146
I have a UITableView with 3 sections. In the first section I have 2 grouped cells. I am modifying the first cell to be larger than the second. Though the first cell resizes, it seems to mess up the cell below it. How can I resolve this?
- (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
CGFloat rowHeight;
if(indexPath.section == kBioSection) {
switch(indexPath.row) {
case kBioSectionDescriptionRow:
rowHeight = 100;
break;
}
}
else {
rowHeight = 50;
}
return rowHeight;
}
© Stack Overflow or respective owner