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 8810933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:14:22+00:00 2026-06-14T03:14:22+00:00

I like to estimate the size an UIWebView is going to take, as I

  • 0

I like to estimate the size an UIWebView is going to take, as I use the webview in a table and if I know the estimated height I can resize the tablecell to the correct height straight away.

So when I get the HTML, I planned to fire a low priority background threat to create the WebViews, calculate the size, and store this in the database with the HTML. Then when the user opens the article the height is available.

But when I do it this way I get the following error:

bool _WebTryThreadLock(bool), 0xb59b610: Tried to obtain the web lock
from a thread other than the main thread or the web thread. This may
be a result of calling to UIKit from a secondary thread. Crashing
now…

Is there a way to determine the height of the HTML without causing this problem?

  • 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-14T03:14:24+00:00Added an answer on June 14, 2026 at 3:14 am

    You can make the UIWebView not visible, but it has to be on the main thread.

    Try:

    webView.layer.zPosition = -1.0;
    webView.userInteractionEnabled = NO;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use a genetic program (gp) to estimate the probability of
I would like to know how I can access the individual fields contained in
I've estimated confidence intervals for intercepts for each group in a dataset like this:
Like setFont(QFont(Helvetica,16,1)) ,I want to summerize these fonts.However,I dont't know how many fonts there
Like the title says, I'm wondering if the use of WebClient is the proper
Like in topic. It is possible to do it? Or make something to use
Like the question says. Converting to / from the (truncated) string representations can affect
I'd like to estimate the number of leaves in a large tree structure for
I'd like to get an estimate of the number of lines of code that
I'm copying a object attributes from a Model to another model like this; @estimate

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.