UIWebView

Discussion in 'iOS Programming' started by anmldr, Aug 11, 2008.

  1. anmldr macrumors member

    Joined:
    Jul 14, 2008
    #1
    Will UIWebView allow you to view HTML documents loaded on the iPhone itself or only access to web pages on the Internet? I have an eBook that is all in HTML. However, I would like to eventually "package" it as an app rather than only allowing access to it to people that have web access. Many times (even at my own home), I find that I do not have access to the web and yet, I would want access to my own material. If UIWebView would allow access to HTML files in internal memory, this would solve the problem.

    Linda
     
  2. detz macrumors 65816

    Joined:
    Jun 29, 2007
    #2
    I'm not 100% sure but from what I've seen a URL is a file or a web address so if UIWebView uses NSUrl objects I don't see why not.
     
  3. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #3
    Yes you can put html files inside the app bundle and display them in a UIWebView. That's what I'm doing for some of my help info so it can be easily viewed off-line.
     
  4. anmldr thread starter macrumors member

    Joined:
    Jul 14, 2008
    #4
    Thank you firewood. I am very new to Apple programming. Going back over some C books and trying to find info in the iPhone documentation. Trying to learn Obj C, etc. Waiting for all of the iPhone dev books to be released :)

    How do you "include" the HTML documents in your app? In Xcode? Can you just include a folder of HTML docuements so that their relative addresses remain intact? What about the css files?

    Any help is appreciated and thanks for answering so quickly previously.

    Linda
     
  5. cdr2008 macrumors newbie

    Joined:
    Aug 15, 2008
    #5
    I also need to figure out how to do this so any help from you guys would be appreciated. I need to deploy an app through itunes that is an offline webapp contained in a standalone wrapper. Also does anyone know if you can still use the sqlite functionality of safari while the webapp is embedded?
     

Share This Page