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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:33:29+00:00 2026-05-26T22:33:29+00:00

I will have to create an offline app from a received html5 file (sort

  • 0

I will have to create an offline app from a received html5 file (sort of just display it in a UIWebView, I have no idea wether it will be multiple pages or just one). I have a very limited knowledge about html programming and such, and unfortunately due to a limited time frame I can’t spend much time reading up about it. Are there any limitations to trying to display this offline in a webview or maybe other ‘catches’ that I need to be aware of?

Thank you in advance.

  • 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-26T22:33:30+00:00Added an answer on May 26, 2026 at 10:33 pm

    If you are not changing the contents of the webpage, you can embed the HTML and all files and you won’t have to worry about HTML5 since it’s all already included

    So create the HTML file and keep it in a folder (let’s call it “index.html” and the folder “code” for this example) and drag it into your Supporting Files folder in xcode. Click the “Copy items…” checkbox and “create folder references…”

    Then use this code in your ViewDidLoad:

    NSString* filePath = [[NSBundle mainBundle] pathForResource:@"index" 
                                                         ofType:@"html"
                                                    inDirectory:@"code"];
    NSURL* fileURL = [NSURL fileURLWithPath:filePath];
    NSURLRequest* request = [NSURLRequest requestWithURL:fileURL];
    [webView loadRequest:request];
    

    IF YOU WANT TO PULL A FILE OFF THE WEB:
    to begin the HTML5 file, start it with

    <!DOCTYPE HTML>
    

    (seriously, that’s all that’s needed for “html5”)

    Then to make it so you can view the files offline, create a “manifest” file, so next add the line

    <html manifest="example.manifest">
    

    Then in a text editor list all the items to be included for offline (index.html, logo.jpg, page2.html, logo2.jpg, etc)
    boom, done

    These 2 links are good resources for offline content
    [http://ofps.oreilly.com/titles/9781449383268/chapOfflineApplicationCache.html][1]
    http://www.html5rocks.com/en/tutorials/appcache/beginner/

    [1]: http://ofps.oreilly.com/titles/9781449383268/chapOfflineApplicationCache.html [removed from web]

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

Sidebar

Related Questions

I have the this code that will create excel file and work sheet then
I have a small offline app which you can create boxes dynamically and the
I want to create an application which will have a client and server components.
I'm trying to create a custom control - a button - which will have
I'm about to create a user based website and will have to store photo,
hi i would like to create a custom calendar, this calendar will have custom
i have asked to create a module that will record video messages form the
I have been trying to create a Ruby program that will be running online
I have written an apex class that will create a PDF quote and attach
I have been asked to create a vbscript that will set the default font

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.