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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:35:31+00:00 2026-06-01T20:35:31+00:00

I have a UIWebView in a navigation controller. It pulls html from an xml

  • 0

I have a UIWebView in a navigation controller. It pulls html from an xml file and then displays the html. The html contains code to grab local images via <img src="image.png" />. On the iPhone Simulator, the UIWebView displays the text and images at the same time. However, there is a big delay on the iPad:

Waiting for images to load...

A few seconds later the images load:

Finally loaded!

How can I get rid of this nasty delay?

Code:

NSString *html = [NSString stringWithFormat:@"Blah blah %@ <img src='image.png'> %@", [self.questionsAndAnswers objectAtIndex:0], [self.questionsAndAnswers objectAtIndex:1]];
[webView loadHTMLString:html baseURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]]];

The UIWebView is connected via Storyboard.

Edit: despite my comments, this actually happens with any image. I even tried loading it into a basic UIWebView with no other html!

  • 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-01T20:35:32+00:00Added an answer on June 1, 2026 at 8:35 pm

    A few things to try:

    • Preload the html (useful if you don’t have to generate any of it on the fly)
    • Preload the image (in order to cache it)
    • Make sure caching is off
    • Make sure there isn’t a lot of image processing going on (resizing etc)
    • Make sure your images aren’t too large (probably anything over 100k should be checked
    • If all else fails, try to make a minimal example by slowly removing parts or by rebuilding the view piece by piece
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have the following code that loads a UIWebView from another View. Now
I have a Navigation Controller app and I'm using this code to switch views:
I have a UIWebView containing html-formatted text. In the text some words are links.
I have a UIWebView that loads a website. Then in - (void)webViewDidFinishLoad:(UIWebView *)webView I
So I have a UIWebView implemented in one .m file and a UITableView implemented
I have a UIWebView with content populated from a Last.fm API call. This content
I have a navigation-based application with 2 UIViewControllers (controller-2 is pushed onto controller-1 when
I have a UIViewController which contains a UIWebView . i login to a website
I load a UIWebView from a string in a navigation based app. I'm using
I have a UIWebView displaying a page that contains a Javascript counter. This page

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.