How to increase the UITableView custom cell height based on the webview content in objective c?
Flower * flower = [self.filteredflowers objectAtIndex: indexPath.row];
NSString * text = flower.descriptionText;
CGSize constraints = CGSizeMake(CELL_CONTENT_WIDTH - (CELL_CONTENT_MARGIN * 7), 20000.0 f);
CGSize size = [text SizeWithFont: [UIFont systemFontOfSize: FoONT_SIZE] constrainedToSize: constraints lineBrakeMode: UILineBreakModeWordwrap];
I wrote this code, but it's showing the sizewithfont
and UILineBreakModeWordwrap
method is deprecated in present xcode. I need replacement of this methods. Thank you.