Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

newtoiphonesdk

macrumors 6502a
Original poster
Jul 30, 2010
567
2
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?
 
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
 
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?

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)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.