Reputation: 65
I have a table view. I use a custom cell to view pictures in it. I've set all the delegate and data source methods and made connection to the custom cell. Everything should work fine... But my table view looks like this:
It divided the cell into two parts and photo as well. And I've set the height of my custom cell higher than it shows. Can anyone help me? I can provide the code, if needed. thanks in advance.
Upvotes: 0
Views: 212
Reputation: 2441
Here are a couple suggestions:
customCell.contentView.frame = ...
, not customCell.frame = ...
.tableView:heightForRowAtIndexPath:
, calculate your cell and set the height as return cell.contentView.frame
.Upvotes: 1