I am using UIWebView as Content for UITableViewCell. When I add UITableView, I am using some constant height for UITableViewCell. as no content is loaded in UIWebView. when Actual content is added in UIWebView, I am able to get actual height of UIWebView.by using [UIWebView sizeThatFits:CGSizeZero];
Now problem is UIWebView is with proper height but cell’s height in smaller than UIWebView’s new height. how I can update height for that cell?
After the UIWebView has finished loading you should call
This will call
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPathagain will resize your UITableViewCell. In that method you calculate the new height for the cell based on the size of your UIWebView.