Extract Image from UIWebView

Discussion in 'iOS Programming' started by newtoiphonesdk, Aug 26, 2010.

  1. newtoiphonesdk macrumors 6502a

    Jul 30, 2010
    I am able to use the JavaScript evaluating string to extract the document.title or document.body.innerText, but is there a way i can extract the image from the document as well?
  2. ianray macrumors 6502

    Jun 22, 2010
    Try googling "uiwebview extract image"... unless you already got an answer from the other forum -- your post comes up as second hit on that search string :D
  3. fluxforge macrumors member

    Apr 16, 2010
    get the image's URL (which should be trivial if you can access the documents DOM) and download it. (+[NSData dataWithContentsOfURL:] and then create an UIImage with that data)

Share This Page