Reputation:
In my tableview, I have one section, and in that section there are two rows.
The first row contains the name of an image and the second row contains the actual image. When inserting the image, I want to resize the cell based on size of that image. I tried out with cell frame and size, but it's not working.
What can I do to solve this problem?
Upvotes: 0
Views: 174
Reputation: 1349
The cells are laid out by the UITableView
, you can't resize the cells directly.
You have to implement - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
in your UITableViewDelegate
Upvotes: 1