Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 03-18-2010, 03:44 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 31
Default How to copy image from UIWebView

I would like to be able use copy and paste with an image in a UIWebView. Unfortunately, the touch and hold gesture doesn't seem to work with a UIWebView. I can get an image copied to the pasteboard occasionally by double tapping but it is not consistent.

Basically I want a way to copy and image from the UIWebView and then copy it to an UIImage.

Any insights, ideas are appreciated.

Jim
svjim is offline   Reply With Quote
Old 03-19-2010, 02:03 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 1,015
Default

you can take a screenshot and then crop the image to get only the webview
Tambourin is offline   Reply With Quote
Old 03-22-2010, 02:30 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 31
Default

Quote:
Originally Posted by Tambourin View Post
you can take a screenshot and then crop the image to get only the webview
That might work as a last resort, but I am looking for something a bit more sophisticated. Ideally there would be some way to get the appropriate image tag from the html body. There must be some way to do that as safari already does it. In what is probably an over simplification of the problem, I would envision getting the x-y coordinates from a touch event and then search the document for an element that encompasses the coordinate.

Jim
svjim is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 270
18 members and 252 guests
14DEV, ADY, ArtieFufkin10, Dani77, HemiMG, IphoneSdk, jakerocheleau, JasonR, jimbo, MACralik, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:56 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0