UIWebView, webarchive

Discussion in 'iOS Development' started by FxM, Nov 9, 2009.

  1. FxM

    FxM New Member

    Joined:
    Sep 14, 2009
    Messages:
    15
    Likes Received:
    0
    Device:
    iPod touch
    Does anyone know how to save a webpage in the uiWebView as a ___.webarchive file?

    I searched all over the web and found nothing. My guess is Apple don’t want this for some reason.

    TIA

    Please Register or Log in to view images

  2. iPhoneSupport

    iPhoneSupport Banned

    Joined:
    Nov 8, 2009
    Messages:
    13
    Likes Received:
    0
    Device:
    2G iPod touch
    Apple has started to reject internet browser applications from the App Store, so I bet you're right by saying they don't want it. Even if you're not creating a web browser, apparently there is no support for it.
  3. Collateral

    Collateral Active Member

    Joined:
    Sep 23, 2007
    Messages:
    1,974
    Likes Received:
    6
    Device:
    iPhone 3GS (Black)
    Could you do it manually by reading the contents of the HTML file and saving that?
  4. FxM

    FxM New Member

    Joined:
    Sep 14, 2009
    Messages:
    15
    Likes Received:
    0
    Device:
    iPod touch
    wget

    May current plan is to wget the files. This works when I run it at the
    command line. The code is available and I plan on integrating it
    w/ my little program.

    My web pages are basically a table w/ pictures very simple.

    If I am successful I’ll right back. I hope they allow this.

    Thanks all

    Please Register or Log in to view images

    .
  5. jsonli

    jsonli New Member

    Joined:
    Jan 5, 2010
    Messages:
    2
    Likes Received:
    0
    Were you able to integrate wget?

    I've been trying to do the same thing, but NSTask is private, so I can't run it!
  6. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    If you want your app to be in the store, you can't run wget from an NSTask!
    1. It's private (for good reasons)
    2. It wouldn't run on non-jailbroken devices, unless you codesign it by hand with your developer signature.

    You could potentially port wget in a way that you can run it on a thread, use libcurl, or just invoke Apple's standard NSURL* methods.
  7. jsonli

    jsonli New Member

    Joined:
    Jan 5, 2010
    Messages:
    2
    Likes Received:
    0
    I got wget to compile against the iPhone architecture, and I'm thinking of running it on a thread and calling main (renamed main) directly with an argument of parameters... but I'm afraid there will be many side-effects.

Share This Page