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

  • Home
  • SEARCH
  • 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 9237181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:28:39+00:00 2026-06-18T07:28:39+00:00

when I load a UIWebView with the following code: NSString *helpText = [NSString stringWithFormat:@Lorem

  • 0

when I load a UIWebView with the following code:

NSString *helpText = [NSString stringWithFormat:@"Lorem Ipsum"];

[self.helpWebView loadHTMLString:[NSString stringWithFormat:@"<html><head></head><body stlye=\"background-color: transparent;\"><div align='justify' style=\"color: #000000; font-family: Helvetica; font-size: %fem;\">%@</div></body></html>", fontSize, helpText] baseURL:[NSURL URLWithString:@""]];

I get this error, but only the first time when a WebView is loaded in my app:

void SendDelegateMessage(NSInvocation *): delegate (webView:decidePolicyForNavigationAction:request:frame:decisionListener:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode

And the text will load, but only after 10 seconds. But the UI is blocked for 10 Seconds. When I navigate through the app, other (“later”) UIWebViews will load immediately and it is not related to this specific UIWebView, i.e. if I got to UIWebView A and then to UIWebView B, A will load after 10 seconds of UI blocking and B will load instantly. IF it starts with B and then goes to A, B will load after 10 seconds and A will load instantly. So, only the first UIWebView which is loaded creates a problem.

And I really only load the html above. Some douzen of characters, no JScript, no big tables, no funny html stuff. It will even block the UI and report the error message if I load a blank HTML-String.

I have not set any delegate stuff or something like this. I created the UIWebView in Interface Builder, connected it to the header via property and I am using loadHTMLString to get content into.

Important: I can currently only use the Simulator, so I cannot predict, whether this is only a Simulator issue. If you know it, please let me know. At the moment, I cannot test at a real device. The Simulator should not go into this error because of ressources however. I have a current MacBook Air and almost no extra programs installed (“clean installation” of Mac OS X Lion).

Another Point: The only reason why I use UIWebView is that I need full justification for the text. If this would work any other way, would help me too. At least from Android development, I know that there is no other way than a WebView.

  • 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-18T07:28:40+00:00Added an answer on June 18, 2026 at 7:28 am

    I think the problem is solved with the update from today (iOS 6.1 SDK) and I also think it is related to the simulator. I think it is about interfering outgoing requests from skpaymenttransaction and other UIWebView… I am not sure about anything, however…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to load an HTML file in an UIWebView using following lines of
Having the following html string to load in a uiwebview, i need to set
I want to load some HTML in a UIWebView: - (IBAction)buttonClicked:(id)sender { [webView loadHTMLString:@Hello
I am working with UIWebView project and I want to load an HTML file
The following is my code. I simply want to load a website page and
I have some embedded html in my application bundle.I'm using loadHtmlString to load it.
I currently have the following code that loads a UIWebView from another View. Now
How can I have a UIWebView load a file that is really an HTML
I have html file in resources folder to load in uiwebview. I need to
In my code, I load a URL (an aspx file) in a UIWebview. It

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.