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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T22:34:05+00:00 2026-06-01T22:34:05+00:00

I am developing an application for a client where a requirement is that a

  • 0

I am developing an application for a client where a requirement is that a series of complex (multi-file, JS, CSS, etc), websites must be presented offline, without any web connection required at all.

So I have all of the HTML content folders, and can add them into my XCode project… but now I need to show them.

The UIWebView is fine when you just have one HTML file… but the relative paths for the JS and CSS do not translate over.

What is the best way to do this. I’ve seen a couple of potential choices. One way is to run a super basic web server locally, dump all the files into /documents (or thereabouts) and serve it from there… the second is to somehow make UIWebView re-interpret the paths so that they point to the right place locally… which I am not sure if it’s possible but I’ve seen it alluded to.

Seems like a lot of people just cover loading a single UIWebView page, and not so much discussing how to deal with CSS/JS dependencies.

Anyone have any bright ideas, links, etc?

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-01T22:34:06+00:00Added an answer on June 1, 2026 at 10:34 pm

    I think that if you add your HTML/CSS/JS tree to your Xcode project and select “Create folder references for any added folder” (instead of “Recursively create groups for any added folders”), then your bundle will contain the HTML/CSS/JS folder hierarchy (instead of the flattened-out list of all files). This would preserve relative paths.

    As to the “reinterpreting” point, you can define

    – webView:shouldStartLoadWithRequest:navigationType:
    

    in your UIWebViewDelegate to intercept any attempt at loading any file. There you can change the url on the fly.

    Also, have a look at this interesting article by Rob Napier: Drop-in offline caching for UIWebView.

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

Sidebar

Related Questions

I currently developing a web based application for a client. the requirement given that
I'm developing a server-client application that uses 3 ports [TCP SOCKET .Net 4.0].. So
I'm developing an application that uses webservices in python, both sides (server and client)
The model that I am currently developing involves three elements: A client application with
I'm developing a .NET 2.0 client application that needs to connect to a WCF
We are developing an application that has an iPhone client, and a Rails server.
I am developing an iPhone application that allows to basically click through a series
I am developing an application for client. In my application there is a requirement
I'm in the process of developing an application that uses client side code (js
I am developing a rich client application that will use the Entity Framework (with

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.