Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

Sistemas Eciton
PLUS
Sistemas Eciton
Courses Plus Student 5,422 Points

Can i save an image from webview on an Iphone app?

I developed an app with webview like an image gallery, but i want to save the image on the iphone, is it possible to download pictures on the iphone?

3 Answers

Christine Rose
Christine Rose
6,745 Points

I don't really understand your question, but it sounds like you want to run your app on the iPhone and then save one of the images to the phone? Please clarify if I'm mistaken.

It is my understanding that you cannot test apps on a device without becoming an official Apple Developer, which costs $99/yr.

Sistemas Eciton
PLUS
Sistemas Eciton
Courses Plus Student 5,422 Points

Hello, sorry for the bad redaction, the question is...I made an app with a webview and the webview have gallery, i want to know if is posible, when i get pressed the image from the webview, appear the option to "save image" and then save it on the camera roll like in safari, the only option that appears is "Copy".

Thanks.

Christine Rose
Christine Rose
6,745 Points

Ah! Now I understand!

Looks like you have to import ImageKit into your code at the top for starters.

More info here on how to code to save images: https://developer.apple.com/library/mac/documentation/GraphicsImaging/Conceptual/ImageKitProgrammingGuide/ImageViews/ImageViews.html