UIWebView in UITableView hide cells

Posted by Belkadam on Stack Overflow See other posts from Stack Overflow or by Belkadam
Published on 2012-11-29T11:01:51Z Indexed on 2012/11/29 11:03 UTC
Read the original article Hit count: 316

Filed under:
|
|
|

I have a UIWebView in UITableView, I have this on storyboard:

Storyboard design

The UIImageView is my future NavBar and the UIWebView is in the UITableView, I have this configuration:

  • -UIImageView
  • -UITableView
      • -UIWebView
      • -UITableViewCell

When the UIWebView load the pages (I Have local pages) I want that it takes dynamically their size and for this I have this code:

[detailWebView setFrame:CGRectMake(0.,0.,detailWebView.frame.size.width,[[detailWebView stringByEvaluatingJavaScriptFromString:@"document.body.scrollHeight;"] intValue])];

The problem is when the loaded page is long, my UIWebBrowser hide the cells and didn't push them to get cells at the bottom. I don't understand why I have this, when I resize the UIWebBrowser in the storyboard I don't have this problem but I want to do it programmatically

Thanks,

© Stack Overflow or respective owner

Related posts about ios

Related posts about uitableview