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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.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, 02:44 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 31
svjim is on a distinguished road
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, 01:03 PM   #2 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 1,018
Tambourin is on a distinguished road
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, 01:30 PM   #3 (permalink)
Registered Member
 
Join Date: Jul 2008
Posts: 31
svjim is on a distinguished road
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: 352
7 members and 345 guests
.Snipe, BSH, givensur, guusleijsten, NSString, Paul Slocum, SillyHoney
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,645
Threads: 94,111
Posts: 402,862
Top Poster: BrianSlick (7,990)
Welcome to our newest member, leighec68
Powered by vBadvanced CMPS v3.1.0

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