Extract Image from UIWebView

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

  1. newtoiphonesdk macrumors 6502a

    Joined:
    Jul 30, 2010
    #1
    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

    Joined:
    Jun 22, 2010
    Location:
    @
    #2
    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

    Joined:
    Apr 16, 2010
    Location:
    europe
    #3
    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