Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8946651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:34:32+00:00 2026-06-15T12:34:32+00:00

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

  • 0

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,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T12:34:33+00:00Added an answer on June 15, 2026 at 12:34 pm

    Thanks to tkanzakic, I solved the problem by adding an empty cell at the beginning, and changing their heigh

    heigh of the 1st cell = old webView.heigh – actual webView.heigh

    To change the heigh of cell I used tableview:cellForRowAtIndexPath
    And no need to reload all data of the tableView I just use this:

    NSIndexPath* rowToReload = [NSIndexPath indexPathForRow:0 inSection:0];
    NSArray* rowsToReload = [NSArray arrayWithObjects:rowToReload, nil];
    [detailsTableView reloadRowsAtIndexPaths:rowsToReload withRowAnimation:UITableViewRowAnimationNone];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UITableView that loads content into a UIWebView like this: //MainViewController.m -
I have a uiwebview that sends its loaded page url to a uitableview to
I have an app, where there's one UIWebView and a UITableView. I don't want
I have a UIWebView that loads a link, http://www.google.com/a/datacommsales.net . But I want to
i have a uitableview which will load a uiwebview with a long page (static
I have to create a UITableView, that contains richly formatted text within each UITableViewCell.
I load local data inside a UIWebView. That instance of UIWebView is added to
I have a UIWebView and I have a custom font I want to load
I have a UITableView that is populated with custom cells (inherited from UITableViewCell ),
So I have a UIWebView implemented in one .m file and a UITableView implemented

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.