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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T09:40:52+00:00 2026-05-26T09:40:52+00:00

I have an application with a UIWebView where I display some html content. The

  • 0

I have an application with a UIWebView where I display some html content.

The content is first downloaded from the web, and then saved to the cache in /library/cache for reuse.

The images are also saved to the cache.

The html code that is saved to the cache is changed so that the ‘src’ code for the image point to the exact folder – where the images have been saved on cache.

When I load the page from the cache, the images doesn’t display with iOS 5. I even don’t have the “?” icon for missing files. No errors. And it is working perfectly on all other iOS except with the actual iOS 5.

Anyone got an idea or experiencing the same problem ?


Yes im using the loadHTMLString method

I found this in the docs and other topics:

Issue: UIWebView can’t load local resources in apps built against 3.0.
When using [UIWebView loadHTMLString:baseURL:], the HTML string should not refer to local resources with the file:// scheme. Instead, pass in NULL or a file:// URL for baseURL:, or include the resources directly in the HTML with <style> and <script> tags.

And Im using [UIWebView loadHTMLString:baseURL:] to load the html from the cache, and my app was build against 3.0
My baseURL was fixed to the url of my server. If now I put ‘NULL’ in the baseURL, the images are displayed correctly with iOS 5.

What I just don’t get is why the images don’t get displayed if I put an url for the baseURL, and thus just with iOS 5 – while with the other iOS the image are displayed.

The project has been build and deployed with XCode 4.2 a few month ago – I don’t know if this is usefull. It has ever worked ! But the issue with loadHTMLString make me think it was not supposed to work with the other iOS ?!?

  • 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-05-26T09:40:53+00:00Added an answer on May 26, 2026 at 9:40 am

    Are you loading the Data in the WebView with the loadHTMLString method?

    If yes, then you should pass in he baseUrl the NSCachesDirectory

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

Sidebar

Related Questions

I have a very simple UIWebView with content from my application bundle. I would
so I have UIWebView in my application and I load some html (article) to
In a UIWebView of my iPad application, I display a HTML file with a
Does the HTML 5 application (offline) cache have any benefit for online/connected apps? My
I have an application that is loading html from a remote server in a
I have an application showing standard html pages. I use UIWebView for html. When
I am using UIWebView as a web browser on my application and when I
I have a jquery-mobile application that is running inside a UIWebView in an iphone
I have an iPhone application with Tabbar. One of the tabs is UIWebView which
I have a query regarding launching a native application from a link of website

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.