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

Reply
 
LinkBack Thread Tools Display Modes
Old 05-24-2011, 10:57 PM   #1 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 2
peterwcm is on a distinguished road
Default Taking screenshots from an url link

Let's say there is a view having only 1 imageView and 1 textField. When a user type in an url link in the textField, the imageView will display the screenshot of that link, is that possible?
peterwcm is offline   Reply With Quote
Old 05-25-2011, 02:42 AM   #2 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

there is nothing for that, so you should use an external service written in php or whatelse....
__________________
dany_dev is offline   Reply With Quote
Old 05-25-2011, 03:59 AM   #3 (permalink)
Token farm animal
 
sneaky's Avatar
 
Join Date: Apr 2011
Posts: 321
sneaky is on a distinguished road
Default

It would be possible. You will have to create a uiwebview off screen - load the actual web page and then render the view as an image.

The only drawback here is that you will have to actually load the page in order to get the image. So if you have a lot of pages this can take some time. You wouldn't want to do this in a uitableview with a lot of records...

Have a look at the layer function renderInContext.
sneaky is offline   Reply With Quote
Old 05-25-2011, 06:01 AM   #4 (permalink)
Nuisance Developer
 
Join Date: Jul 2009
Location: Italy
Posts: 4,691
dany_dev is on a distinguished road
Default

yes, but he will not have a full resolution of the site, just a preview or part of it (if it not fit the screen).
__________________
dany_dev is offline   Reply With Quote
Old 05-25-2011, 08:18 AM   #5 (permalink)
Token farm animal
 
sneaky's Avatar
 
Join Date: Apr 2011
Posts: 321
sneaky is on a distinguished road
Default

Quote:
Originally Posted by dany_dev View Post
yes, but he will not have a full resolution of the site, just a preview or part of it (if it not fit the screen).
Well, that was my understanding of the question, he wants a preview of the site. You could modify the size of the view so that you would fit a fairly large web page (although not arbitrary). But we're still pretty limited by the overall screen size of the phone though.

But then again - with this approach, why not load the web page in a uiwebview on screen to begin with instead of doing it off screen and rendering an image after...
sneaky is offline   Reply With Quote
Old 05-25-2011, 08:41 AM   #6 (permalink)
Registered Member
 
Join Date: May 2011
Posts: 2
peterwcm is on a distinguished road
Default

Thanks for the advice!!! I kinda got the idea
peterwcm is offline   Reply With Quote
Reply

Bookmarks

Tags
screenshot, uiwebview

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: 353
6 members and 347 guests
doffing81, dre, iOS.Lover, jenniead38, Kirkout, Wikiboo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,663
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, LezB44
Powered by vBadvanced CMPS v3.1.0

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