Custom UITableViewCell not appearing when row height is set

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-06-08T00:08:15Z Indexed on 2010/06/08 0:12 UTC
Read the original article Hit count: 276

I have a custom UITableViewCell which I have created in IB. My labels display when I don't over-ride:

- (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath

however my content is squished. I want the height to be 120px so I have the following:

- (CGFloat)tableView:(UITableView *)tblView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{   CGFloat rowHeight = 120;
    return rowHeight;
}

I'm not sure why the content inside of my UITableViewCell all of a sudden disappears?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c